Package edu.umd.cs.findbugs.visitclass
Class LVTHelper
java.lang.Object
edu.umd.cs.findbugs.visitclass.LVTHelper
Eases access to a BCEL LocalVariable object
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.bcel.classfile.LocalVariable
getLocalVariableAtPC
(org.apache.bcel.classfile.LocalVariableTable lvt, int index, int pc) returns the local variable at an index int the scope of PC
-
Constructor Details
-
LVTHelper
public LVTHelper()
-
-
Method Details
-
getLocalVariableAtPC
public static org.apache.bcel.classfile.LocalVariable getLocalVariableAtPC(@Nonnull org.apache.bcel.classfile.LocalVariableTable lvt, int index, int pc) returns the local variable at an index int the scope of PC- Parameters:
lvt
- the local variable tableindex
- the variable indexpc
- the PC where the variable is used
-