[Java] Class TemporaryVariableExpression
- org.codehaus.groovy.transform.sc.TemporaryVariableExpression
A front-end class for ExpressionAsVariableSlot which allows defining temporary variables loaded from variable slots directly at the AST level, without any knowledge of AsmClassGenerator.
- Since:
- 2.4.0
Constructor Summary
Constructor and description |
---|
TemporaryVariableExpression
(Expression expression) |
Methods Summary
Type Params | Return Type | Name and description |
---|---|---|
ClassNode |
getType() | |
void |
remove(WriterController controller) | |
Expression |
transformExpression(ExpressionTransformer transformer) | |
void |
visit(GroovyCodeVisitor visitor) |
Inherited Methods Summary
Methods inherited from class | Name |
---|---|
class Expression | getType, setType, transformExpression, transformExpressions, transformExpressions |
class AnnotatedNode | addAnnotation, addAnnotations, getAnnotations, getAnnotations, getDeclaringClass, hasNoRealSourcePosition, isSynthetic, setDeclaringClass, setHasNoRealSourcePosition, setSynthetic |
class ASTNode | copyNodeMetaData, equals, getColumnNumber, getLastColumnNumber, getLastLineNumber, getLineNumber, getMetaDataMap, getNodeMetaData, getNodeMetaData, getText, hashCode, putNodeMetaData, removeNodeMetaData, setColumnNumber, setLastColumnNumber, setLastLineNumber, setLineNumber, setNodeMetaData, setSourcePosition, visit |
Constructor Detail
public TemporaryVariableExpression(Expression expression)
Method Detail
@Override public ClassNode getType()
public void remove(WriterController controller)
@Override public Expression transformExpression(ExpressionTransformer transformer)
@Override public void visit(GroovyCodeVisitor visitor)
© 2003-2020 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/2.5.14/html/gapi/org/codehaus/groovy/transform/sc/TemporaryVariableExpression.html