public abstract class Expression extends AstNode
| Modifier and Type | Field and Description |
|---|---|
static int |
MYSTERY_OFFSET
a constant to indicate that no bytecode offset is known for an expression
|
static Expression |
NULL |
AST_NODE_USED_FLAGS, flagsCHILD_ITERATOR| Modifier | Constructor and Description |
|---|---|
protected |
Expression(int offset) |
| Modifier and Type | Method and Description |
|---|---|
Expression |
clone() |
static Expression |
forPattern(Pattern pattern) |
NodeType |
getNodeType() |
int |
getOffset()
Returns the bytecode offset for 'this' expression.
|
InvocationExpression |
invoke(Expression... arguments) |
InvocationExpression |
invoke(java.lang.Iterable<Expression> arguments) |
InvocationExpression |
invoke(java.lang.String methodName,
Expression... arguments) |
InvocationExpression |
invoke(java.lang.String methodName,
java.lang.Iterable<AstType> typeArguments,
Expression... arguments) |
InvocationExpression |
invoke(java.lang.String methodName,
java.lang.Iterable<AstType> typeArguments,
java.lang.Iterable<Expression> arguments) |
InvocationExpression |
invoke(java.lang.String methodName,
java.lang.Iterable<Expression> arguments) |
MemberReferenceExpression |
member(java.lang.String memberName) |
void |
setOffset(int offset)
Sets the bytecode offset for 'this' expression.
|
acceptVisitor, addChild, contains, contains, copyUserDataFrom, freezeCore, getAncestors, getAncestors, getAncestorsAndSelf, getChildByRole, getChildren, getChildrenByRole, getDescendants, getDescendantsAndSelf, getEndLocation, getFirstChild, getLastChild, getNextNode, getNextSibling, getNextSibling, getParent, getParent, getPreviousNode, getPreviousSibling, getPreviousSibling, getRegion, getRole, getStartLocation, getText, getText, getUserData, hasChildren, insertChildAfter, insertChildBefore, insertChildrenAfter, insertChildrenBefore, isAncestorOf, isDescendantOf, isInside, isInside, isLoop, isNull, isReference, isUnconditionalBranch, match, matches, matches, matchesCollection, matchString, putUserData, putUserDataIfAbsent, remove, replace, replaceWith, replaceWith, setChildByRole, setRole, toStringpublic static final Expression NULL
public static final int MYSTERY_OFFSET
public int getOffset()
public void setOffset(int offset)
public Expression clone()
public NodeType getNodeType()
getNodeType in class AstNodepublic static Expression forPattern(Pattern pattern)
public InvocationExpression invoke(Expression... arguments)
public InvocationExpression invoke(java.lang.Iterable<Expression> arguments)
public InvocationExpression invoke(java.lang.String methodName, Expression... arguments)
public InvocationExpression invoke(java.lang.String methodName, java.lang.Iterable<Expression> arguments)
public InvocationExpression invoke(java.lang.String methodName, java.lang.Iterable<AstType> typeArguments, Expression... arguments)
public InvocationExpression invoke(java.lang.String methodName, java.lang.Iterable<AstType> typeArguments, java.lang.Iterable<Expression> arguments)
public MemberReferenceExpression member(java.lang.String memberName)