public class LocalVariable
extends java.lang.Object
| Constructor and Description |
|---|
LocalVariable(int index)
Constructor.
|
LocalVariable(java.lang.String name,
Type type,
int index)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
Check if an object is equal to this variable.
|
int |
hashCode()
Hash the local variable.
|
int |
index()
Get the index into the local variable array.
|
java.lang.String |
name()
Get the name of the local variable.
|
java.lang.String |
toString()
Convert the variable to a string.
|
Type |
type()
Get the type of the local variable.
|
public LocalVariable(int index)
index - The index of the local variable in the method's local variable
array.public LocalVariable(java.lang.String name,
Type type,
int index)
name - The name of the local variable.type - The descriptor (or index into the constant pool) representing
the variable type.index - The index of the local variable in the method's local variable
array.public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - The object to compare against.public java.lang.String name()
public Type type()
public int index()
public java.lang.String toString()
toString in class java.lang.Object