Top Description Fields Constructors Methods
org.codehaus.groovy.classgen.asm

public Class BytecodeVariable

extends Object
Class Inheritance
Imports
org.codehaus.groovy.ast.ClassHelper, .ClassNode, org.objectweb.asm.Label

Represents compile time variable metadata while compiling a method.

Field Summary

Modifier and TypeField and Description
private boolean
private Label
private boolean
private final int
private String
private final int
private Label
public static final BytecodeVariable
public static final BytecodeVariable
private ClassNode

Constructor Summary

AccessConstructor and Description
private
public
BytecodeVariable(int index, ClassNode type, String name, int prevCurrent)

Method Summary

Modifier and TypeMethod and Description
public Label
public int

Returns:

the stack index for this variable
getIndex
()

public String
public int
public Label
public ClassNode
public boolean
public boolean

Returns:

is this local variable shared in other scopes (and so must use a ValueHolder)
isHolder
()

public void
setDynamicTyped(boolean b)

public void
setEndLabel(Label endLabel)

public void
setHolder(boolean holder)

public void
setStartLabel(Label startLabel)

public void
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

dynamicTypedback to summary
private boolean dynamicTyped
endLabelback to summary
private Label endLabel
holderback to summary
private boolean holder
indexback to summary
private final int index
nameback to summary
private String name
prevCurrentback to summary
private final int prevCurrent
startLabelback to summary
private Label startLabel
SUPER_VARIABLEback to summary
public static final BytecodeVariable SUPER_VARIABLE
THIS_VARIABLEback to summary
public static final BytecodeVariable THIS_VARIABLE
typeback to summary
private ClassNode type

Constructor Detail

BytecodeVariableback to summary
private BytecodeVariable()
BytecodeVariableback to summary
public BytecodeVariable(int index, ClassNode type, String name, int prevCurrent)

Method Detail

getEndLabelback to summary
public Label getEndLabel()
getIndexback to summary
public int getIndex()
Returns:int

the stack index for this variable

getNameback to summary
public String getName()
getPrevIndexback to summary
public int getPrevIndex()
getStartLabelback to summary
public Label getStartLabel()
getTypeback to summary
public ClassNode getType()
isDynamicTypedback to summary
public boolean isDynamicTyped()
isHolderback to summary
public boolean isHolder()
Returns:boolean

is this local variable shared in other scopes (and so must use a ValueHolder)

setDynamicTypedback to summary
public void setDynamicTyped(boolean b)
setEndLabelback to summary
public void setEndLabel(Label endLabel)
setHolderback to summary
public void setHolder(boolean holder)
setStartLabelback to summary
public void setStartLabel(Label startLabel)
setTypeback to summary
public void setType(ClassNode type)
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.