public abstract class Expression extends AnnotatedNode
Modifier and Type | Field and Description |
---|---|
static Expression[] |
EMPTY_ARRAY |
DOC_COMMENT
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, getGroovydoc, getInstance, hasNoRealSourcePosition, isSynthetic, setDeclaringClass, setHasNoRealSourcePosition, setSynthetic
copyNodeMetaData, getColumnNumber, getLastColumnNumber, getLastLineNumber, getLineNumber, getMetaDataMap, getText, hashCode, setColumnNumber, setLastColumnNumber, setLastLineNumber, setLineNumber, setMetaDataMap, setSourcePosition, visit
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
copyNodeMetaData, getNodeMetaData, getNodeMetaData, getNodeMetaData, putNodeMetaData, removeNodeMetaData, setNodeMetaData
public static final Expression[] EMPTY_ARRAY
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)