Class LocalVariables
java.lang.Object
org.apache.bcel.verifier.structurals.LocalVariables
This class implements an array of local variables used for symbolic JVM
simulation.
- Version:
- $Id: LocalVariables.java 386056 2006-03-15 11:31:56Z tcurdt $
- Author:
- Enver Haase
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Object
clone()
Returns a deep copy of this object; i.e.boolean
get
(int i) Returns the type of the local variable slot i.getClone()
Returns a (correctly typed) clone of this object.int
hashCode()
void
Replaces all occurences of u in this local variables set with an "initialized" ObjectType.int
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
Sets 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
Returns a deep copy of this object; i.e. the clone operates on a new local variable array. However, the Type objects in the array are shared. -
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
public int 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
Returns a String representation of this object. -
initializeObject
Replaces all occurences of u in this local variables set with an "initialized" ObjectType.
-