Constructor and Description |
---|
LocalVariables(int localVariableCount)
Creates a new LocalVariables object.
|
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Returns a deep copy of this object; i.e.
|
boolean |
equals(Object o) |
Type |
get(int slotIndex)
Returns the type of the local variable slot index.
|
LocalVariables |
getClone()
Returns a (correctly typed) clone of this object.
|
int |
hashCode() |
void |
initializeObject(UninitializedObjectType uninitializedObjectType)
Replaces all occurrences of
uninitializedObjectType in this local variables set
with an "initialized" ObjectType. |
int |
maxLocals()
Returns the number of local variable slots.
|
void |
merge(LocalVariables localVariable)
Merges two local variables sets as described in the Java Virtual Machine Specification,
Second Edition, section 4.9.2, page 146.
|
void |
set(int slotIndex,
Type type)
Sets a new Type for the given local variable slot.
|
String |
toString()
Returns a String representation of this object.
|
public LocalVariables(int localVariableCount)
localVariableCount
- local variable count.public Object clone()
public Type get(int slotIndex)
slotIndex
- Slot to look up.public LocalVariables getClone()
public int maxLocals()
public void set(int slotIndex, Type type)
slotIndex
- Target slot index.type
- Type to save at the given slot index.public int hashCode()
public void merge(LocalVariables localVariable)
localVariable
- other local variable.public String toString()
public void initializeObject(UninitializedObjectType uninitializedObjectType)
uninitializedObjectType
in this local variables set
with an "initialized" ObjectType.uninitializedObjectType
- the object to match.Copyright © 2004–2019 The Apache Software Foundation. All rights reserved.