Modifier and Type | Class and Description |
---|---|
class |
JAbsentArrayDimension
Represents an array dimension that was not specified in an array
instantiation expression.
|
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 |
JGwtCreate
Represents a GWT.create() call before deferred binding decisions are
finalized.
|
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 |
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 |
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 |
static JExpression |
JAbsentArrayDimension.INSTANCE |
Modifier and Type | Field and Description |
---|---|
List<JExpression> |
JNewArray.dims |
List<JExpression> |
JNewArray.initializers |
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.
|
static JExpression |
JGwtCreate.createInstantiationExpression(SourceInfo info,
JClassType classType,
JDeclaredType enclosingType) |
JExpression |
JUnaryOperation.getArg() |
JExpression |
JAssertStatement.getArg() |
JExpression |
JForStatement.getCondition()
Returns the condition (2nd component) expression.
|
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 |
JIfStatement.getIfExpr() |
JExpression |
JConditional.getIfTest() |
JExpression |
JForStatement.getIncrements()
Returns the increments (3rd component) expression.
|
JExpression |
JArrayRef.getIndexExpr() |
JExpression |
JVariable.getInitializer() |
JExpression |
JDeclarationStatement.getInitializer() |
JExpression |
HasInstance.getInstance() |
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() |
ArrayList<JExpression> |
JGwtCreate.getInstantiationExpressions() |
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 JExpressionStatement |
JProgram.createAssignmentStmt(SourceInfo info,
JExpression lhs,
JExpression rhs)
Helper to create an assignment, used to initalize fields, etc.
|
void |
JVisitor.endVisit(JExpression x,
Context ctx) |
void |
JMethodCall.setArg(int index,
JExpression arg)
Sets the argument at the specified index.
|
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.createDims(SourceInfo info,
JArrayType arrayType,
List<JExpression> dims) |
static JNewArray |
JNewArray.createInitializers(SourceInfo info,
JArrayType arrayType,
List<JExpression> initializers) |
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)
Initialize a new method call equivalent to another one.
|
JMethodCall(SourceInfo info,
JExpression instance,
JMethod method,
JExpression... args) |
JMethodCall(SourceInfo info,
JExpression instance,
JMethod method,
JExpression... args) |
JMethodCall(SourceInfo info,
JExpression instance,
JMethod method,
JType overrideReturnType,
JExpression... args)
Create a method call whose type is overridden to the specified type,
ignoring the return type of the target method.
|
JMethodCall(SourceInfo info,
JExpression instance,
JMethod method,
JType overrideReturnType,
JExpression... args)
Create a method call whose type is overridden to the specified type,
ignoring the return type of the target method.
|
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) |
JWhileStatement(SourceInfo info,
JExpression testExpr,
JStatement body) |
Constructor and Description |
---|
JGwtCreate(SourceInfo info,
String sourceType,
List<String> resultTypes,
JType type,
ArrayList<JExpression> instantiationExpressions)
Constructor used for cloning an existing node.
|
JNewArray(SourceInfo info,
JArrayType type,
List<JExpression> dims,
List<JExpression> initializers,
JClassLiteral leafTypeClassLiteral) |
JNewArray(SourceInfo info,
JArrayType type,
List<JExpression> dims,
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.getExprs() |
Modifier and Type | Method and Description |
---|---|
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.
|
void |
JsonArray.addExprs(List<JExpression> exprs) |
Constructor and Description |
---|
JMultiExpression(SourceInfo info,
JExpression... expressions)
Construct a multi expression containing
expressions if any. |
Constructor and Description |
---|
JMultiExpression(SourceInfo info,
Collection<JExpression> expressions)
Construct a multi expression containing
expressions . |
Modifier and Type | Method and Description |
---|---|
<T extends JExpression> |
CloneExpressionVisitor.cloneExpression(T expr) |
Modifier and Type | Method and Description |
---|---|
static JExpression |
Simplifier.and(JBinaryOperation exp)
Simplify short circuit AND expressions.
|
JExpression |
AutoboxUtils.box(JExpression toBox,
JPrimitiveType primitiveType)
Box the expression
toBox into the wrapper type corresponding
to primitiveType . |
static JExpression |
Simplifier.cast(JCastOperation exp)
Simplify cast operations.
|
static JExpression |
Simplifier.cast(JType type,
JExpression exp)
Simplify cast operations.
|
static JExpression |
Simplifier.conditional(JConditional exp)
Simplify conditional expressions.
|
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.
|
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.not(JPrefixOperation expr)
Simplifies an negation expression.
|
static JExpression |
Simplifier.or(JBinaryOperation exp)
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.
|
protected JExpression |
CompoundAssignmentNormalizer.expressionToReturn(JExpression lhs)
Decide what expression to return when breaking up a compound assignment of
the form
lhs op= rhs . |
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) |
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.
|
Modifier and Type | Method and Description |
---|---|
static Cfg |
CfgBuilder.buildExpressionCfg(JProgram program,
JExpression 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.