Modifier and Type | Class and Description |
---|---|
class |
JArrayLength
Java array length expression.
|
class |
JArrayRef
Java array reference expression.
|
class |
JBinaryOperation
Binary operator expression.
|
class |
JBooleanLiteral
Java boolean literal expression.
|
class |
JCastMap
A low-level node representing a castable type map.
|
class |
JCastOperation
Java cast expression.
|
class |
JCharLiteral
Java character literal expression.
|
class |
JClassLiteral
Java class literal expression.
|
class |
JConditional
Conditional expression.
|
class |
JDoubleLiteral
Java double literal expression.
|
class |
JFieldRef
Java field reference expression.
|
class |
JFloatLiteral
Java literal typed as a float.
|
class |
JInstanceOf
Java instance of expression.
|
class |
JIntLiteral
Java integer literal expression.
|
class |
JLiteral
Base class for any Java literal expression.
|
class |
JLocalRef
Java local variable reference.
|
class |
JLongLiteral
Java literal expression that evaluates to a Long.
|
class |
JMethodCall
Java method call expression.
|
class |
JNameOf
An AST node whose evaluation results in the string name of its node.
|
class |
JNewArray
New array expression.
|
class |
JNewInstance
A new instance expression.
|
class |
JNullLiteral
Java null literal expression.
|
class |
JNumericEntry
A place order a numeric value in the AST.
|
class |
JParameterRef
Java method parameter reference expression.
|
class |
JPermutationDependentValue
Represents a GWT.create() or a GWT.getProperty call before deferred binding decisions are
finalized.
|
class |
JPostfixOperation
Java postfix operation expression.
|
class |
JPrefixOperation
Java prefix operation expression.
|
class |
JRunAsync
Represents a GWT.runAsync() call.
|
class |
JRuntimeTypeReference
An AST node whose evaluation results in a runtime type reference of its node.
|
class |
JStringLiteral
Java literal expression that evaluates to a string.
|
class |
JThisRef
Java method this (or super) expression.
|
class |
JUnaryOperation
Java prefix or postfix operation expression.
|
class |
JUnsafeTypeCoercion
An unsafe type coercion (mostly resulting form the UncheckedCast annotation).
|
class |
JValueLiteral
Base class for any Java literal expression.
|
class |
JVariableRef
Base class for any reference to a
JVariable derived class. |
Modifier and Type | Field and Description |
---|---|
JExpression |
JDeclarationStatement.initializer |
Modifier and Type | Method and Description |
---|---|
JExpression |
JVisitor.accept(JExpression node) |
JExpression |
JVisitor.acceptLvalue(JExpression expr) |
JExpression |
JModVisitor.acceptLvalue(JExpression expr) |
JExpression |
JProgram.createArrayClassLiteralExpression(SourceInfo sourceInfo,
JClassLiteral leafTypeClassLiteral,
int dimensions)
Returns an expression that evaluates to an array class literal at runtime.
|
JExpression |
JUnaryOperation.getArg() |
JExpression |
JAssertStatement.getArg() |
JExpression |
JForStatement.getCondition()
Returns the condition (2nd component) expression.
|
JExpression |
JPermutationDependentValue.getDefaultValueExpression() |
JExpression |
JConditional.getElseExpr() |
JExpression |
JInstanceOf.getExpr() |
JExpression |
JSwitchStatement.getExpr() |
JExpression |
JCastOperation.getExpr() |
JExpression |
JCaseStatement.getExpr() |
JExpression |
JExpressionStatement.getExpr() |
JExpression |
JReturnStatement.getExpr() |
JExpression |
JThrowStatement.getExpr() |
JExpression |
JUnsafeTypeCoercion.getExpression() |
JExpression |
JIfStatement.getIfExpr() |
JExpression |
JConditional.getIfTest() |
JExpression |
JForStatement.getIncrements()
Returns the increments (3rd component) expression.
|
JExpression |
JArrayRef.getIndexExpr() |
JExpression |
JVariable.getInitializer() |
JExpression |
JDeclarationStatement.getInitializer() |
JExpression |
JArrayRef.getInstance() |
JExpression |
JMethodCall.getInstance() |
JExpression |
JFieldRef.getInstance() |
JExpression |
JArrayLength.getInstance() |
JExpression |
JBinaryOperation.getLhs() |
JExpression |
JRunAsync.getOnSuccessCall()
Returns a call expression akin to
callback.onSuccess() . |
JExpression |
JBinaryOperation.getRhs() |
JExpression |
JRunAsync.getRunAsyncCall()
Returns a call expression akin to
AsyncFragmentLoader.runAsync(7, callback) . |
JExpression |
JDoStatement.getTestExpr() |
JExpression |
JWhileStatement.getTestExpr() |
JExpression |
JAssertStatement.getTestExpr() |
JExpression |
JConditional.getThenExpr() |
Modifier and Type | Method and Description |
---|---|
List<JExpression> |
JMethodCall.getArgs()
Returns the call arguments.
|
List<JExpression> |
JCastMap.getCanCastToTypes() |
List<JExpression> |
JNewArray.getDimensionExpressions() |
List<JExpression> |
JNewArray.getInitializers() |
List<JExpression> |
JPermutationDependentValue.getResultExpressions() |
Modifier and Type | Method and Description |
---|---|
JExpression |
JVisitor.accept(JExpression node) |
JExpression |
JVisitor.acceptLvalue(JExpression expr) |
JExpression |
JModVisitor.acceptLvalue(JExpression expr) |
void |
JMethodCall.addArg(int index,
JExpression toAdd)
Inserts an argument at the specified index.
|
void |
JMethodCall.addArg(JExpression toAdd)
Adds an argument to this method.
|
void |
JMethodCall.addArgs(JExpression... toAdd)
Adds an argument to this method.
|
static JBinaryOperation |
JProgram.createAssignment(SourceInfo info,
JExpression lhs,
JExpression rhs) |
static JExpressionStatement |
JProgram.createAssignmentStmt(SourceInfo info,
JExpression lhs,
JExpression rhs)
Helper to create an assignment, used to initialize fields, etc.
|
static JPermutationDependentValue |
JPermutationDependentValue.createRuntimeProperty(JProgram program,
SourceInfo info,
String propertyName,
JExpression defaultValueExpression) |
void |
JVisitor.endVisit(JExpression x,
Context ctx) |
void |
JMethodCall.setArg(int index,
JExpression arg)
Sets the argument at the specified index.
|
T |
JTransformer.transformExpression(JExpression x) |
boolean |
JVisitor.visit(JExpression x,
Context ctx) |
Modifier and Type | Method and Description |
---|---|
void |
JMethodCall.addArgs(List<JExpression> toAdd)
Adds arguments to this method.
|
static JNewArray |
JNewArray.createArrayWithDimensionExpressions(SourceInfo info,
JArrayType arrayType,
List<JExpression> dimensionExpressions) |
static JNewArray |
JNewArray.createArrayWithInitializers(SourceInfo info,
JArrayType arrayType,
List<JExpression> initializers) |
static JPermutationDependentValue |
JPermutationDependentValue.createTypeRebind(JProgram program,
SourceInfo info,
String requestedType,
List<String> resultTypes,
List<JExpression> instantiationExpressions) |
Constructor and Description |
---|
JArrayLength(SourceInfo info,
JExpression instance) |
JArrayRef(SourceInfo info,
JExpression instance,
JExpression indexExpr) |
JAssertStatement(SourceInfo info,
JExpression testExpr,
JExpression arg) |
JBinaryOperation(SourceInfo info,
JType type,
JBinaryOperator op,
JExpression lhs,
JExpression rhs) |
JCaseStatement(SourceInfo info,
JExpression expr) |
JCastOperation(SourceInfo info,
JType castType,
JExpression expr) |
JConditional(SourceInfo info,
JType type,
JExpression ifTest,
JExpression thenExpr,
JExpression elseExpr) |
JDeclarationStatement(SourceInfo info,
JVariableRef variableRef,
JExpression intializer) |
JDoStatement(SourceInfo info,
JExpression testExpr,
JStatement body) |
JFieldRef(SourceInfo info,
JExpression instance,
JField field,
JDeclaredType enclosingType) |
JFieldRef(SourceInfo info,
JExpression instance,
JField field,
JDeclaredType enclosingType,
JType overriddenType) |
JForStatement(SourceInfo info,
List<JStatement> initializers,
JExpression condition,
JExpression increments,
JStatement body)
Creates an AST node that represents a Java for statement.
|
JIfStatement(SourceInfo info,
JExpression ifExpr,
JStatement thenStmt,
JStatement elseStmt) |
JInstanceOf(SourceInfo info,
JReferenceType testType,
JExpression expression) |
JMethodCall(JMethodCall other,
JExpression instance,
JExpression... args)
Initialize a new method call equivalent to another one.
|
JMethodCall(JMethodCall other,
JExpression instance,
JExpression... args)
Initialize a new method call equivalent to another one.
|
JMethodCall(JMethodCall other,
JExpression instance,
List<JExpression> args)
Initialize a new method call equivalent to another one.
|
JMethodCall(SourceInfo info,
JExpression instance,
JMethod method,
JExpression... args)
Create a method call.
|
JMethodCall(SourceInfo info,
JExpression instance,
JMethod method,
JExpression... args)
Create a method call.
|
JMethodCall(SourceInfo info,
JExpression instance,
JMethod method,
List<JExpression> args)
Create a method call.
|
JPostfixOperation(SourceInfo info,
JUnaryOperator op,
JExpression arg) |
JPrefixOperation(SourceInfo info,
JUnaryOperator op,
JExpression arg) |
JReturnStatement(SourceInfo info,
JExpression expr) |
JRunAsync(SourceInfo info,
int runAsyncId,
String name,
boolean explicitClassLiteral,
JExpression runAsyncCall,
JExpression onSuccessCall)
Constructs a runAsync call node; explicitClassLiteral is set if the corresponding
GWT.runAsync() call has a class literal.
|
JSwitchStatement(SourceInfo info,
JExpression expr,
JBlock body) |
JThrowStatement(SourceInfo info,
JExpression expr) |
JUnaryOperation(SourceInfo info,
JUnaryOperator op,
JExpression arg) |
JUnsafeTypeCoercion(SourceInfo info,
JType coercionType,
JExpression expression) |
JWhileStatement(SourceInfo info,
JExpression testExpr,
JStatement body) |
Constructor and Description |
---|
JMethodCall(JMethodCall other,
JExpression instance,
List<JExpression> args)
Initialize a new method call equivalent to another one.
|
JMethodCall(SourceInfo info,
JExpression instance,
JMethod method,
List<JExpression> args)
Create a method call.
|
JNewArray(SourceInfo info,
JArrayType type,
List<JExpression> dimensionExpressions,
List<JExpression> initializers,
JClassLiteral leafTypeClassLiteral) |
JNewArray(SourceInfo info,
JArrayType type,
List<JExpression> dimensionExpressions,
List<JExpression> initializers,
JClassLiteral leafTypeClassLiteral) |
Modifier and Type | Class and Description |
---|---|
class |
JMultiExpression
Represents multiple ordered expressions as a single compound expression.
|
class |
JsniClassLiteral
JSNI reference to a Java class literal.
|
class |
JsniFieldRef
JSNI reference to a Java field.
|
class |
JsniMethodRef
A call to a JSNI method.
|
class |
JsonArray
A JSON-style list of JS expressions.
|
Modifier and Type | Method and Description |
---|---|
JExpression |
JMultiExpression.getExpression(int index)
Returns the expression at
index . |
JExpression |
JMultiExpression.removeExpression(int index)
Removes the expression at
index from this multi expression. |
Modifier and Type | Method and Description |
---|---|
List<JExpression> |
JMultiExpression.getExpressions()
Returns the list of expressions.
|
List<JExpression> |
JsonArray.getExpressions() |
Modifier and Type | Method and Description |
---|---|
void |
JMultiExpression.addExpressions(int index,
JExpression... expressions)
Adds
expressions to the multi expression at position index . |
void |
JMultiExpression.addExpressions(JExpression... expressions)
Adds
expressions to the multi expression at the end. |
void |
JMultiExpression.setExpression(int index,
JExpression expression)
Replaces the expression at
index by expression . |
Modifier and Type | Method and Description |
---|---|
void |
JMultiExpression.addExpressions(int index,
List<JExpression> expressions)
Adds a list of expressions to the multi expression at position
index . |
void |
JMultiExpression.addExpressions(List<JExpression> expressions)
Adds a list of expressions to the multi expression at the end.
|
Constructor and Description |
---|
JMultiExpression(SourceInfo info,
JExpression... expressions)
Construct a multi expression containing
expressions if any. |
JsonArray(SourceInfo sourceInfo,
JType arrayType,
JExpression... expressions) |
Constructor and Description |
---|
JMultiExpression(SourceInfo info,
Collection<JExpression> expressions)
Construct a multi expression containing
expressions . |
JsonArray(SourceInfo sourceInfo,
JType arrayType,
List<JExpression> expressions) |
Modifier and Type | Interface and Description |
---|---|
static interface |
ResolveRuntimeTypeReferences.TypeMapper<T extends JExpression>
Maps a type into a type id literal.
|
Modifier and Type | Method and Description |
---|---|
<T extends JExpression> |
CloneExpressionVisitor.cloneExpression(T expr) |
Modifier and Type | Method and Description |
---|---|
JExpression |
AutoboxUtils.box(JExpression toBox,
JPrimitiveType primitiveType)
Box the expression
toBox into the wrapper type corresponding
to primitiveType . |
static JExpression |
Simplifier.cast(JType type,
JExpression exp)
Simplify cast operations.
|
JExpression |
ResolvePermutationDependentValues.computeInstantiationExpression(JPermutationDependentValue x) |
static JExpression |
JjsUtils.createDefaultConstructorInstantiation(SourceInfo info,
JClassType type)
Returns an instantiation expression for
type using the default constructor,
Returns null if type does not have a default constructor. |
static JExpression |
JjsUtils.createOptimizedMultiExpression(boolean ignoringResult,
List<JExpression> expressions)
Creates a multi expression from a list of expressions, removing expressions that do
not have side effects if possible.
|
static JExpression |
JjsUtils.createOptimizedMultiExpression(JExpression... expressions)
Creates a multi expression from a list of expressions, removing expressions that do
not have side effects if possible.
|
static JExpression |
JjsUtils.createOptimizedNotNullComparison(JProgram program,
SourceInfo info,
JExpression expression)
Returns an ast node representing the expression
expression != null . |
protected JExpression |
CompoundAssignmentNormalizer.expressionToReturn(JExpression lhs)
Decide what expression to return when breaking up a compound assignment of
the form
lhs op= rhs . |
protected JExpression |
PostOptimizationCompoundAssignmentNormalizer.modifyResultOperation(JBinaryOperation op) |
protected JExpression |
CompoundAssignmentNormalizer.modifyResultOperation(JBinaryOperation op)
Decide what expression to return when breaking up a compound assignment of
the form
lhs op= rhs . |
static JExpression |
Simplifier.simplifyAnd(JBinaryOperation expression)
Simplify short circuit AND expressions.
|
static JExpression |
Simplifier.simplifyCast(JCastOperation castExpression)
Simplify cast operations.
|
static JExpression |
Simplifier.simplifyConditional(JConditional expression)
Simplify conditional expressions.
|
static JExpression |
Simplifier.simplifyNot(JPrefixOperation expression)
Simplifies an negation expression.
|
static JExpression |
Simplifier.simplifyOr(JBinaryOperation expression)
Simplify short circuit OR expressions.
|
JExpression |
AutoboxUtils.undoUnbox(JExpression arg)
If
x is an unbox expression, then return the expression that
is being unboxed by it. |
Modifier and Type | Method and Description |
---|---|
ArrayList<JExpression> |
CloneExpressionVisitor.cloneExpressions(List<JExpression> exprs) |
Modifier and Type | Method and Description |
---|---|
JExpression |
AutoboxUtils.box(JExpression toBox,
JPrimitiveType primitiveType)
Box the expression
toBox into the wrapper type corresponding
to primitiveType . |
static JExpression |
Simplifier.cast(JType type,
JExpression exp)
Simplify cast operations.
|
static JExpression |
JjsUtils.createOptimizedMultiExpression(JExpression... expressions)
Creates a multi expression from a list of expressions, removing expressions that do
not have side effects if possible.
|
static JExpression |
JjsUtils.createOptimizedNotNullComparison(JProgram program,
SourceInfo info,
JExpression expression)
Returns an ast node representing the expression
expression != null . |
protected JExpression |
CompoundAssignmentNormalizer.expressionToReturn(JExpression lhs)
Decide what expression to return when breaking up a compound assignment of
the form
lhs op= rhs . |
static JStatement |
JjsUtils.makeMethodEndStatement(JType returnType,
JExpression expression)
Returns the ending statement for a method based on an expression.
|
protected boolean |
ToStringGenerationVisitor.parenPop(int parentPrec,
JExpression child) |
protected boolean |
ToStringGenerationVisitor.parenPop(JExpression parent,
JExpression child) |
protected boolean |
ToStringGenerationVisitor.parenPush(int parentPrec,
JExpression child) |
protected boolean |
ToStringGenerationVisitor.parenPush(JExpression parent,
JExpression child) |
static void |
JjsUtils.replaceMethodBody(JMethod method,
JExpression returnValue) |
JExpression |
AutoboxUtils.undoUnbox(JExpression arg)
If
x is an unbox expression, then return the expression that
is being unboxed by it. |
Modifier and Type | Method and Description |
---|---|
ArrayList<JExpression> |
CloneExpressionVisitor.cloneExpressions(List<JExpression> exprs) |
static JExpression |
JjsUtils.createOptimizedMultiExpression(boolean ignoringResult,
List<JExpression> expressions)
Creates a multi expression from a list of expressions, removing expressions that do
not have side effects if possible.
|
Modifier and Type | Method and Description |
---|---|
JExpression |
CfgBinaryConditionalOperationNode.getCondition() |
JExpression |
CfgDoNode.getCondition() |
JExpression |
CfgForNode.getCondition() |
JExpression |
CfgIfNode.getCondition() |
JExpression |
CfgCaseNode.getCondition() |
JExpression |
CfgConditionalExpressionNode.getCondition() |
abstract JExpression |
CfgConditionalNode.getCondition()
Condition which is used to determine the branch.
|
JExpression |
CfgWhileNode.getCondition() |
JExpression |
CfgReadWriteNode.getTarget()
Get operation target.
|
JExpression |
CfgWriteNode.getTarget()
Get operation target.
|
JExpression |
CfgReadWriteNode.getValue()
Get expression which is assigned to value.
|
JExpression |
CfgWriteNode.getValue()
Get expression which is assigned to value.
|
Constructor and Description |
---|
CfgCaseNode(CfgNode<?> parent,
JCaseStatement node,
JExpression condition) |
CfgOptionalThrowNode(CfgNode<?> parent,
JExpression node) |
CfgReadWriteNode(CfgNode<?> parent,
JNode node,
JExpression target,
JExpression value) |
CfgWriteNode(CfgNode<?> parent,
JNode node,
JExpression target,
JExpression value) |
Modifier and Type | Method and Description |
---|---|
static JValueLiteral |
ExpressionEvaluator.evaluate(JExpression expression,
ConstantsAssumption assumptions) |
Copyright © 2018. All rights reserved.