Package org.codehaus.janino
Class Java.LocalVariable
- java.lang.Object
-
- org.codehaus.janino.Java.LocalVariable
-
- Enclosing class:
- Java
public static class Java.LocalVariable extends java.lang.Object
Representation of a local variable while it is in scope during compilation.
-
-
Field Summary
Fields Modifier and Type Field Description boolean
finaL
Whether this local variable has the FINAL modifier flag.Java.LocalVariableSlot
slot
The slot reserved for this local variable.IType
type
The type of this local variable.
-
Constructor Summary
Constructors Constructor Description LocalVariable(boolean finaL, IType type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description short
getSlotIndex()
void
setSlot(Java.LocalVariableSlot slot)
java.lang.String
toString()
-
-
-
Field Detail
-
finaL
public final boolean finaL
Whether this local variable has the FINAL modifier flag.
-
type
public final IType type
The type of this local variable.
-
slot
@Nullable public Java.LocalVariableSlot slot
The slot reserved for this local variable.
-
-
Constructor Detail
-
LocalVariable
public LocalVariable(boolean finaL, IType type)
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.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 (two slots for LONG and DOUBLE local variables)
-
-