Package org.codehaus.groovy.classgen.asm
Class BytecodeVariable
- java.lang.Object
- 
- org.codehaus.groovy.classgen.asm.BytecodeVariable
 
- 
 public class BytecodeVariable extends Object Represents compile time variable metadata while compiling a method.
- 
- 
Field SummaryFields Modifier and Type Field Description static BytecodeVariableSUPER_VARIABLEstatic BytecodeVariableTHIS_VARIABLE
 - 
Constructor SummaryConstructors Constructor Description BytecodeVariable(int index, ClassNode type, String name, int prevCurrent)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description org.objectweb.asm.LabelgetEndLabel()intgetIndex()StringgetName()intgetPrevIndex()org.objectweb.asm.LabelgetStartLabel()ClassNodegetType()booleanisDynamicTyped()booleanisHolder()voidsetDynamicTyped(boolean b)voidsetEndLabel(org.objectweb.asm.Label endLabel)voidsetHolder(boolean holder)voidsetStartLabel(org.objectweb.asm.Label startLabel)voidsetType(ClassNode type)StringtoString()
 
- 
- 
- 
Field Detail- 
THIS_VARIABLEpublic static final BytecodeVariable THIS_VARIABLE 
 - 
SUPER_VARIABLEpublic static final BytecodeVariable SUPER_VARIABLE 
 
- 
 - 
Method Detail- 
getNamepublic String getName() 
 - 
getTypepublic ClassNode getType() 
 - 
getIndexpublic int getIndex() - Returns:
- the stack index for this variable
 
 - 
isHolderpublic boolean isHolder() - Returns:
- is this local variable shared in other scopes (and so must use a ValueHolder)
 
 - 
setHolderpublic void setHolder(boolean holder) 
 - 
getStartLabelpublic org.objectweb.asm.Label getStartLabel() 
 - 
setStartLabelpublic void setStartLabel(org.objectweb.asm.Label startLabel) 
 - 
getEndLabelpublic org.objectweb.asm.Label getEndLabel() 
 - 
setEndLabelpublic void setEndLabel(org.objectweb.asm.Label endLabel) 
 - 
setTypepublic void setType(ClassNode type) 
 - 
setDynamicTypedpublic void setDynamicTyped(boolean b) 
 - 
isDynamicTypedpublic boolean isDynamicTyped() 
 - 
getPrevIndexpublic int getPrevIndex() 
 
- 
 
-