org.codehaus.groovy.classgen
Class Variable
java.lang.Object
org.codehaus.groovy.classgen.Variable
- public class Variable
- extends java.lang.Object
Represents compile time variable metadata while compiling a method.
- Version:
- $Revision: 1.5 $
- Author:
- James Strachan
Constructor Summary |
Variable(int index,
Type type,
java.lang.String name)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Variable
public Variable(int index,
Type type,
java.lang.String name)
getName
public java.lang.String getName()
getType
public Type getType()
getTypeName
public java.lang.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)
toString
public java.lang.String toString()
Copyright © 2003-2004 The Codehaus. All Rights Reserved.