org.codehaus.groovy.classgen
Class Variable
java.lang.Object
org.codehaus.groovy.classgen.Variable
- public class Variable
- extends Object
Represents compile time variable metadata while compiling a method.
- Version:
- $Revision: 1.9 $
- Author:
- James Strachan
Variable
public Variable(int index,
ClassNode type,
String name)
getName
public String getName()
getType
public ClassNode getType()
getTypeName
public String getTypeName()
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)
isProperty
public boolean isProperty()
setProperty
public void setProperty(boolean property)
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
public String toString()
deriveBoxedVersion
public Variable deriveBoxedVersion()
- derive a new Variable from this if this is a primitive variable, or return this instance
- Returns:
setType
public void setType(ClassNode type)
setDynamicTyped
public void setDynamicTyped(boolean b)
isDynamicTyped
public boolean isDynamicTyped()
Copyright © 2003-2007 The Codehaus. All Rights Reserved.