public abstract class Expression extends AnnotatedNode
Constructor and Description |
---|
Expression() |
Modifier and Type | Method and Description |
---|---|
ClassNode |
getType() |
void |
setType(ClassNode t) |
abstract Expression |
transformExpression(ExpressionTransformer transformer)
Return a copy of the expression calling the transformer on any nested expressions
|
protected List<Expression> |
transformExpressions(List<? extends Expression> expressions,
ExpressionTransformer transformer)
Transforms the list of expressions
|
protected <T extends Expression> |
transformExpressions(List<? extends Expression> expressions,
ExpressionTransformer transformer,
Class<T> transformedType)
Transforms the list of expressions, and checks that all transformed expressions have the given type.
|
addAnnotation, addAnnotations, getAnnotations, getAnnotations, getDeclaringClass, hasNoRealSourcePosition, isSynthetic, setDeclaringClass, setHasNoRealSourcePosition, setSynthetic
copyNodeMetaData, getColumnNumber, getLastColumnNumber, getLastLineNumber, getLineNumber, getNodeMetaData, getNodeMetaData, getText, putNodeMetaData, removeNodeMetaData, setColumnNumber, setLastColumnNumber, setLastLineNumber, setLineNumber, setNodeMetaData, setSourcePosition, visit
public abstract Expression transformExpression(ExpressionTransformer transformer)
transformer
- protected List<Expression> transformExpressions(List<? extends Expression> expressions, ExpressionTransformer transformer)
protected <T extends Expression> List<T> transformExpressions(List<? extends Expression> expressions, ExpressionTransformer transformer, Class<T> transformedType)
public ClassNode getType()
public void setType(ClassNode t)