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 java.util.List<Expression> |
transformExpressions(java.util.List<? extends Expression> expressions,
ExpressionTransformer transformer)
Transforms the list of expressions
|
protected <T extends Expression> |
transformExpressions(java.util.List<? extends Expression> expressions,
ExpressionTransformer transformer,
java.lang.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, getText, putNodeMetaData, removeNodeMetaData, setColumnNumber, setLastColumnNumber, setLastLineNumber, setLineNumber, setNodeMetaData, setSourcePosition, visit
public abstract Expression transformExpression(ExpressionTransformer transformer)
transformer
- protected java.util.List<Expression> transformExpressions(java.util.List<? extends Expression> expressions, ExpressionTransformer transformer)
protected <T extends Expression> java.util.List<T> transformExpressions(java.util.List<? extends Expression> expressions, ExpressionTransformer transformer, java.lang.Class<T> transformedType)
public ClassNode getType()
public void setType(ClassNode t)