public class LocalVariables extends Object
Constructor and Description |
---|
LocalVariables(int maxLocals)
Creates a new LocalVariables object.
|
Modifier and Type | Method and Description |
---|---|
protected Object |
clone()
Returns a deep copy of this object; i.e.
|
boolean |
equals(Object o) |
Type |
get(int i)
Returns the type of the local variable slot i.
|
LocalVariables |
getClone()
Returns a (correctly typed) clone of this object.
|
int |
hashCode() |
void |
initializeObject(UninitializedObjectType u)
Replaces all occurences of u in this local variables set
with an "initialized" ObjectType.
|
int |
maxLocals()
Returns the number of local variable slots this
LocalVariables instance has.
|
void |
merge(LocalVariables lv)
Merges two local variables sets as described in the Java Virtual Machine Specification,
Second Edition, section 4.9.2, page 146.
|
void |
set(int i,
Type type)
Sets a new Type for the given local variable slot.
|
String |
toString()
Returns a String representation of this object.
|
public LocalVariables(int maxLocals)
protected Object clone()
public Type get(int i)
public LocalVariables getClone()
public int maxLocals()
public void set(int i, Type type)
public int hashCode()
public void merge(LocalVariables lv)
public String toString()
public void initializeObject(UninitializedObjectType u)