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
.EMPTY_ARRAY
DOC_COMMENT
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, getGroovydoc, getInstance, hasNoRealSourcePosition, isSynthetic, setDeclaringClass, setHasNoRealSourcePosition, setSynthetic
copyNodeMetaData, getColumnNumber, getLastColumnNumber, getLastLineNumber, getLineNumber, getMetaDataMap, getText, hashCode, setColumnNumber, setLastColumnNumber, setLastLineNumber, setLineNumber, setMetaDataMap, setSourcePosition
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
copyNodeMetaData, getNodeMetaData, getNodeMetaData, getNodeMetaData, putNodeMetaData, removeNodeMetaData, setNodeMetaData
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