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 Summary
Fields Modifier and Type Field Description static BytecodeVariableSUPER_VARIABLEstatic BytecodeVariableTHIS_VARIABLE - 
Constructor Summary
Constructors Constructor Description BytecodeVariable(int index, ClassNode type, String name, int prevCurrent) - 
Method Summary
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 Details
- 
THIS_VARIABLE
 - 
SUPER_VARIABLE
 
 - 
 - 
Constructor Details
- 
BytecodeVariable
 
 - 
 - 
Method Details
- 
getName
 - 
getType
 - 
getIndex
public int getIndex()- Returns:
 - the stack index for this variable
 
 - 
isHolder
public boolean isHolder()- Returns:
 - is this local variable shared in other scopes (and so must use a ValueHolder)
 
 - 
setHolder
public void setHolder(boolean holder) - 
getStartLabel
public org.objectweb.asm.Label getStartLabel() - 
setStartLabel
public void setStartLabel(org.objectweb.asm.Label startLabel) - 
getEndLabel
public org.objectweb.asm.Label getEndLabel() - 
setEndLabel
public void setEndLabel(org.objectweb.asm.Label endLabel) - 
toString
 - 
setType
 - 
setDynamicTyped
public void setDynamicTyped(boolean b) - 
isDynamicTyped
public boolean isDynamicTyped() - 
getPrevIndex
public int getPrevIndex() 
 -