Package org.codehaus.groovy.classgen.asm
Class BytecodeVariable
java.lang.Object
org.codehaus.groovy.classgen.asm.BytecodeVariable
public class BytecodeVariable
extends java.lang.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, java.lang.String name, int prevCurrent)
- 
Method SummaryModifier and Type Method Description org.objectweb.asm.LabelgetEndLabel()intgetIndex()java.lang.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)java.lang.StringtoString()Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
- 
Field Details- 
THIS_VARIABLE
- 
SUPER_VARIABLE
 
- 
- 
Constructor Details- 
BytecodeVariable
 
- 
- 
Method Details- 
getNamepublic java.lang.String getName()
- 
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)
- 
toStringpublic java.lang.String toString()- Overrides:
- toStringin class- java.lang.Object
 
- 
setType
- 
setDynamicTypedpublic void setDynamicTyped(boolean b)
- 
isDynamicTypedpublic boolean isDynamicTyped()
- 
getPrevIndexpublic int getPrevIndex()
 
-