Package org.apache.bcel.verifier.statics
Class LocalVariablesInfo
java.lang.Object
org.apache.bcel.verifier.statics.LocalVariablesInfo
A utility class holding the information about the names and the types of the local variables in a given method.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds information about the local variable in slot 'slot'.getLocalVariableInfo
(int slot) Returns the LocalVariableInfo for the given slot.
-
Method Details
-
add
public void add(int slot, String name, int startPc, int length, Type type) throws LocalVariableInfoInconsistentException Adds information about the local variable in slot 'slot'. Automatically adds information for slot+1 if 't' is Type.LONG or Type.DOUBLE.- Parameters:
slot
- Slot number for local variable informationname
- variable namestartPc
- Range in which the variable is valid.length
- length of ...type
- variable type- Throws:
LocalVariableInfoInconsistentException
- if the new information conflicts with already gathered information.
-
getLocalVariableInfo
Returns the LocalVariableInfo for the given slot.- Parameters:
slot
- Slot to query.- Returns:
- The LocalVariableInfo for the given slot.
-