janino.net

org.codehaus.janino
Class Java.LocalVariable

java.lang.Object
  extended by org.codehaus.janino.Java.LocalVariable
Enclosing class:
Java

public static class Java.LocalVariable
extends Object

Representation of a local variable while it is in scope during compilation.


Field Summary
 boolean finaL
          Whether this local variable has the FINAL modifier flag.
 Java.LocalVariableSlot slot
          The slot reserved for this local variable.
 IClass type
          The type of this local variable.
 
Constructor Summary
Java.LocalVariable(boolean finaL, IClass type)
           
 
Method Summary
 short getSlotIndex()
           
 void setSlot(Java.LocalVariableSlot slot)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

finaL

public final boolean finaL
Whether this local variable has the FINAL modifier flag.


type

public final IClass type
The type of this local variable.


slot

public Java.LocalVariableSlot slot
The slot reserved for this local variable.

Constructor Detail

Java.LocalVariable

public Java.LocalVariable(boolean finaL,
                          IClass type)
Method Detail

toString

public String toString()
Overrides:
toString in class Object

setSlot

public void setSlot(Java.LocalVariableSlot slot)
Parameters:
slot - The slot to reserve for this local variable

getSlotIndex

public short getSlotIndex()
Returns:
The slot reserved for this local variable

janino.net