Modifier and Type | Method and Description |
---|---|
Context |
Context.addImport(MetaClass clazz)
Imports the given class.
|
Context |
Context.addLabel(Label label)
Add a
Label to the current scope. |
Context |
Context.addVariable(String name,
Class<?> type)
Add a variable to the current scope.
|
Context |
Context.addVariable(String name,
Class<?> type,
Object initialization)
Add a variable to the current scope and initialize it.
|
Context |
Context.addVariable(Variable variable)
Add a
Variable to the current scope. |
Context |
Context.autoImport()
Enables automatic import of classes used during code generation.
|
static Context |
Context.create()
Creates a new and empty context.
|
static Context |
Context.create(Context parent)
Create a new sub context for the given parent context.
|
Modifier and Type | Method and Description |
---|---|
static Context |
Context.create(Context parent)
Create a new sub context for the given parent context.
|
String |
VariableReference.generate(Context context) |
String |
Variable.generate(Context context) |
String |
ThrowsDeclaration.generate(Context context) |
String |
TernaryStatement.generate(Context context) |
String |
StringStatement.generate(Context context) |
String |
Statement.generate(Context context) |
String |
ProxyMaker.ProxyProperty.generate(Context context) |
String |
Parameter.generate(Context context) |
String |
MethodInvocation.generate(Context context) |
String |
InnerClass.generate(Context context) |
String |
DefParameters.generate(Context context) |
String |
Comment.generate(Context context) |
String |
Cast.generate(Context context) |
String |
CallParameters.generate(Context context) |
String |
BlockStatement.generate(Context context) |
abstract String |
OperationOrder.render(UnaryOperator operator,
Statement value,
Context context) |
Modifier and Type | Method and Description |
---|---|
Context |
BuildCallback.getParentContext() |
Modifier and Type | Method and Description |
---|---|
void |
DeferredCallback.doDeferred(CallWriter writer,
Context context,
Statement statement) |
String |
LoadClassReference.ClassReference.generate(Context context) |
static String |
LoadClassReference.getClassReference(MetaType metaClass,
Context context) |
static String |
LoadClassReference.getClassReference(MetaType metaClass,
Context context,
boolean typeParms) |
void |
ThrowException.handleCall(CallWriter writer,
Context context,
Statement statement) |
void |
ReturnValue.handleCall(CallWriter writer,
Context context,
Statement statement) |
void |
ResetCallElement.handleCall(CallWriter writer,
Context context,
Statement statement) |
void |
MethodCall.handleCall(CallWriter writer,
Context context,
Statement statement) |
void |
LoadVariable.handleCall(CallWriter writer,
Context context,
Statement statement) |
void |
LoadNested.handleCall(CallWriter writer,
Context context,
Statement statement) |
void |
LoadLiteral.handleCall(CallWriter writer,
Context context,
Statement statement) |
void |
LoadField.handleCall(CallWriter writer,
Context context,
Statement statement) |
void |
LoadClassReference.handleCall(CallWriter writer,
Context context,
Statement statement) |
void |
DynamicLoad.handleCall(CallWriter writer,
Context context,
Statement statement) |
void |
DefineLabel.handleCall(CallWriter writer,
Context context,
Statement statement) |
void |
DeferredCallElement.handleCall(CallWriter writer,
Context context,
Statement statement) |
void |
DeclareVariable.handleCall(CallWriter writer,
Context context,
Statement statement) |
void |
ConditionalBlockCallElement.handleCall(CallWriter writer,
Context context,
Statement lhs) |
void |
CallElement.handleCall(CallWriter writer,
Context context,
Statement statement) |
void |
BranchCallElement.handleCall(CallWriter writer,
Context context,
Statement statement) |
void |
AssignVariable.handleCall(CallWriter writer,
Context context,
Statement statement) |
void |
AbstractCallElement.nextOrReturn(CallWriter writer,
Context ctx,
Statement statement) |
Modifier and Type | Field and Description |
---|---|
protected Context |
AbstractStatementBuilder.context |
Modifier and Type | Method and Description |
---|---|
Context |
ContextBuilder.getContext() |
Modifier and Type | Method and Description |
---|---|
static StatementBegin |
StatementBuilder.create(Context context) |
static ContextBuilder |
ContextBuilder.create(Context context) |
String |
AnonymousClassStructureBuilderImpl.DeferredGenerateCallback.doGenerate(Context context) |
String |
ObjectBuilder.generate(Context context) |
String |
ExpressionBuilder.generate(Context context) |
String |
DeclareAssignmentBuilder.generate(Context context) |
String |
BooleanExpressionBuilder.generate(Context context) |
String |
BitwiseExpressionBuilder.generate(Context context) |
String |
AssignmentBuilder.generate(Context context) |
String |
ArrayBuilderImpl.generate(Context context) |
String |
AbstractStatementBuilder.generate(Context context) |
static ObjectBuilder |
ObjectBuilder.newInstanceOf(Class<?> type,
Context context) |
static ObjectBuilder |
ObjectBuilder.newInstanceOf(Class<?> type,
Context context,
CallElementBuilder callElementBuilder) |
static ObjectBuilder |
ObjectBuilder.newInstanceOf(MetaClass type,
Context context) |
static ObjectBuilder |
ObjectBuilder.newInstanceOf(MetaClass type,
Context context,
CallElementBuilder callElementBuilder) |
static ObjectBuilder |
ObjectBuilder.newInstanceOf(javax.enterprise.util.TypeLiteral<?> type,
Context context) |
static ObjectBuilder |
ObjectBuilder.newInstanceOf(javax.enterprise.util.TypeLiteral<?> type,
Context context,
CallElementBuilder callElementBuilder) |
Constructor and Description |
---|
AbstractStatementBuilder(Context context) |
AbstractStatementBuilder(Context context,
CallElementBuilder callElementBuilder) |
ArrayBuilderImpl(Context context,
CallElementBuilder callElementBuilder) |
ContextBuilder(Context context) |
ContextualStatementBuilderImpl(Context context,
CallElementBuilder callElementBuilder) |
IfBlockBuilderImpl(Context context,
CallElementBuilder callElementBuilder) |
IfBlockBuilderImpl(Context context,
CallElementBuilder callElementBuilder,
IfBlock ifBlock) |
LoopBuilderImpl(Context context,
CallElementBuilder callElementBuilder) |
StatementBuilder(Context context) |
SwitchBlockBuilderImpl(Context context,
CallElementBuilder callElementBuilder) |
TryBlockBuilderImpl(Context context,
CallElementBuilder callElementBuilder) |
Modifier and Type | Method and Description |
---|---|
String |
WhileLoop.generate(Context context) |
String |
TryBlock.generate(Context context) |
String |
SwitchBlock.generate(Context context) |
String |
IfBlock.generate(Context context) |
String |
ForeachLoop.generate(Context context) |
String |
ForLoop.generate(Context context) |
String |
DoWhileLoop.generate(Context context) |
Modifier and Type | Method and Description |
---|---|
String |
LabelReference.generate(Context context) |
String |
Label.generate(Context context) |
String |
ContinueStatement.generate(Context context) |
String |
BreakStatement.generate(Context context) |
String |
AbstractBranchStatement.generateLabelReference(Context context) |
Modifier and Type | Method and Description |
---|---|
String |
MetaClassLiteral.generate(Context context) |
String |
LiteralValue.generate(Context context) |
String |
StringLiteral.getCanonicalString(Context context) |
String |
ShortValue.getCanonicalString(Context context) |
String |
SetValue.getCanonicalString(Context context) |
String |
NullLiteral.getCanonicalString(Context context) |
String |
MetaClassLiteral.getCanonicalString(Context context) |
String |
MapValue.getCanonicalString(Context context) |
String |
LongValue.getCanonicalString(Context context) |
abstract String |
LiteralValue.getCanonicalString(Context context) |
String |
ListValue.getCanonicalString(Context context) |
String |
IntValue.getCanonicalString(Context context) |
String |
FloatValue.getCanonicalString(Context context) |
String |
DoubleValue.getCanonicalString(Context context) |
String |
ClassLiteral.getCanonicalString(Context context) |
String |
CharValue.getCanonicalString(Context context) |
String |
ByteValue.getCanonicalString(Context context) |
String |
BooleanValue.getCanonicalString(Context context) |
String |
ArrayLiteral.getCanonicalString(Context context) |
String |
AnnotationLiteral.getCanonicalString(Context context) |
static LiteralValue<?> |
LiteralFactory.getLiteral(Context context,
Object o)
Returns a literal value (specialization of Statement) representing the
given object in the given context.
|
Modifier and Type | Method and Description |
---|---|
Context |
BuildMetaClass.getContext() |
Modifier and Type | Method and Description |
---|---|
void |
BuildMetaClass.setContext(Context context) |
String |
BuildMetaClass.toJavaString(Context context) |
Constructor and Description |
---|
BuildMetaClass(Context context,
String name) |
Modifier and Type | Method and Description |
---|---|
static void |
GenUtil.assertAssignableTypes(Context context,
MetaClass from,
MetaClass to) |
static Statement |
GenUtil.convert(Context context,
Object input,
MetaClass targetType) |
static StatementBegin |
Stmt.create(Context ctx) |
String |
EmptyStatement.generate(Context context)
Returns the empty string.
|
static Statement |
GenUtil.generate(Context context,
Object o) |
static Statement[] |
GenUtil.generateCallParameters(Context context,
Object... parameters) |
static Statement[] |
GenUtil.generateCallParameters(MetaMethod method,
Context context,
Object... parameters) |
Modifier and Type | Method and Description |
---|---|
Statement |
TypedQueryFactoryGenerator.generate(Context context)
Returns a statement that evaluates to a new instance of the TypedQueryFactory implementation.
|
Copyright © 2013-2015 JBoss, a division of Red Hat. All Rights Reserved.