Class LocalVariables
java.lang.Object
org.apache.bcel.verifier.structurals.LocalVariables
This class implements an array of local variables used for symbolic JVM
simulation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Objectclone()Returns a deep copy of this object; i.e.booleanget(int i) Returns the type of the local variable slot i.getClone()Returns a (correctly typed) clone of this object.inthashCode()voidReplaces all occurences of u in this local variables set with an "initialized" ObjectType.intReturns the number of local variable slots this LocalVariables instance has.voidmerge(LocalVariables lv) Merges two local variables sets as described in the Java Virtual Machine Specification, Second Edition, section 4.9.2, page 146.voidSets a new Type for the given local variable slot.toString()Returns a String representation of this object.
-
Constructor Details
-
LocalVariables
public LocalVariables(int maxLocals) Creates a new LocalVariables object.
-
-
Method Details
-
clone
-
get
Returns the type of the local variable slot i. -
getClone
Returns a (correctly typed) clone of this object. This is equivalent to ((LocalVariables) this.clone()). -
maxLocals
public int maxLocals()Returns the number of local variable slots this LocalVariables instance has. -
set
Sets a new Type for the given local variable slot. -
hashCode
-
equals
-
merge
Merges two local variables sets as described in the Java Virtual Machine Specification, Second Edition, section 4.9.2, page 146. -
toString
-
initializeObject
Replaces all occurences of u in this local variables set with an "initialized" ObjectType.
-