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.3 $
Author:
James Strachan

Constructor Summary
Variable(int index, String type, String name)
           
 
Method Summary
 int getIndex()
           
 String getName()
           
 String getType()
           
 boolean isHolder()
           
 void setHolder(boolean holder)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Variable

public Variable(int index,
                String type,
                String name)
Method Detail

getName

public String getName()

getType

public String 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)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2003 The Codehaus. All Rights Reserved.