public class TemporaryVariableExpression extends Expression
ExpressionAsVariableSlot
which
allows defining temporary variables loaded from variable slots directly at the AST level,
without any knowledge of AsmClassGenerator
.Constructor and Description |
---|
TemporaryVariableExpression(Expression expression) |
Modifier and Type | Method and Description |
---|---|
ClassNode |
getType() |
void |
remove(WriterController controller) |
Expression |
transformExpression(ExpressionTransformer transformer)
Return a copy of the expression calling the transformer on any nested expressions
|
void |
visit(GroovyCodeVisitor visitor) |
setType, transformExpressions, transformExpressions
addAnnotation, addAnnotations, getAnnotations, getAnnotations, getDeclaringClass, hasNoRealSourcePosition, isSynthetic, setDeclaringClass, setHasNoRealSourcePosition, setSynthetic
copyNodeMetaData, equals, getColumnNumber, getLastColumnNumber, getLastLineNumber, getLineNumber, getMetaDataMap, getNodeMetaData, getNodeMetaData, getText, hashCode, putNodeMetaData, removeNodeMetaData, setColumnNumber, setLastColumnNumber, setLastLineNumber, setLineNumber, setNodeMetaData, setSourcePosition
public TemporaryVariableExpression(Expression expression)
public Expression transformExpression(ExpressionTransformer transformer)
Expression
transformExpression
in class Expression
public void visit(GroovyCodeVisitor visitor)
public void remove(WriterController controller)
public ClassNode getType()
getType
in class Expression