Package org.codehaus.groovy.classgen.asm
Class ExpressionAsVariableSlot
java.lang.Object
org.codehaus.groovy.ast.ASTNode
org.codehaus.groovy.ast.AnnotatedNode
org.codehaus.groovy.ast.expr.Expression
org.codehaus.groovy.classgen.BytecodeExpression
org.codehaus.groovy.classgen.asm.ExpressionAsVariableSlot
- All Implemented Interfaces:
- GroovydocHolder<AnnotatedNode>,- NodeMetaDataHandler
Helper class that takes an Expression and if visited will load it normally, 
 storing the result in a helper variable, which then can be requested after
 the visit is completed. A copy of the variable will stay on the stack. 
 Subsequent visits will load the stored value instead of visiting the 
 expression again
- 
Field SummaryFields inherited from class org.codehaus.groovy.classgen.BytecodeExpressionNOPFields inherited from class org.codehaus.groovy.ast.expr.ExpressionEMPTY_ARRAYFields inherited from interface groovy.lang.groovydoc.GroovydocHolderDOC_COMMENT
- 
Constructor SummaryConstructorsConstructorDescriptionExpressionAsVariableSlot(WriterController controller, Expression expression) ExpressionAsVariableSlot(WriterController controller, Expression expression, String name) 
- 
Method SummaryMethods inherited from class org.codehaus.groovy.classgen.BytecodeExpressiontransformExpression, visitMethods inherited from class org.codehaus.groovy.ast.expr.ExpressiongetType, setType, transformExpressions, transformExpressionsMethods inherited from class org.codehaus.groovy.ast.AnnotatedNodeaddAnnotation, addAnnotation, addAnnotations, getAnnotations, getAnnotations, getDeclaringClass, getGroovydoc, getInstance, hasNoRealSourcePosition, isSynthetic, setDeclaringClass, setHasNoRealSourcePosition, setSyntheticMethods inherited from class org.codehaus.groovy.ast.ASTNodecopyNodeMetaData, getColumnNumber, getLastColumnNumber, getLastLineNumber, getLineNumber, getMetaDataMap, setColumnNumber, setLastColumnNumber, setLastLineNumber, setLineNumber, setMetaDataMap, setSourcePositionMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.codehaus.groovy.ast.NodeMetaDataHandlercopyNodeMetaData, getNodeMetaData, getNodeMetaData, getNodeMetaData, putNodeMetaData, removeNodeMetaData, setNodeMetaData
- 
Constructor Details- 
ExpressionAsVariableSlot
- 
ExpressionAsVariableSlot
 
- 
- 
Method Details- 
visitpublic void visit(org.objectweb.asm.MethodVisitor mv) - Specified by:
- visitin class- BytecodeExpression
 
- 
getIndexpublic int getIndex()returns the index of the bytecode variable
- 
getText- Overrides:
- getTextin class- BytecodeExpression
 
 
-