Package edu.umd.cs.findbugs.visitclass
Class Util
java.lang.Object
edu.umd.cs.findbugs.visitclass.Util
- Author:
- pugh
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.bcel.classfile.JavaClass
getOuterClass
(org.apache.bcel.classfile.JavaClass obj) Determine the outer class of obj.static int
getSizeOfSurroundingTryBlock
(org.apache.bcel.classfile.ConstantPool constantPool, org.apache.bcel.classfile.Code code, String vmNameOfExceptionClass, int pc) static int
getSizeOfSurroundingTryBlock
(org.apache.bcel.classfile.Method method, Class<? extends Throwable> exceptionClass, int pc) static int
getSizeOfSurroundingTryBlock
(org.apache.bcel.classfile.Method method, String vmNameOfExceptionClass, int pc) static org.apache.bcel.classfile.CodeException
getSurroundingTryBlock
(org.apache.bcel.classfile.ConstantPool constantPool, org.apache.bcel.classfile.Code code, String vmNameOfExceptionClass, int pc)
-
Constructor Details
-
Util
public Util()
-
-
Method Details
-
getOuterClass
@CheckForNull public static org.apache.bcel.classfile.JavaClass getOuterClass(org.apache.bcel.classfile.JavaClass obj) throws ClassNotFoundException Determine the outer class of obj.- Parameters:
obj
-- Returns:
- JavaClass for outer class, or null if obj is not an outer class
- Throws:
ClassNotFoundException
-
getSizeOfSurroundingTryBlock
-
getSizeOfSurroundingTryBlock
public static int getSizeOfSurroundingTryBlock(@CheckForNull org.apache.bcel.classfile.Method method, @CheckForNull String vmNameOfExceptionClass, int pc) -
getSurroundingTryBlock
@CheckForNull public static org.apache.bcel.classfile.CodeException getSurroundingTryBlock(org.apache.bcel.classfile.ConstantPool constantPool, org.apache.bcel.classfile.Code code, @CheckForNull String vmNameOfExceptionClass, int pc) -
getSizeOfSurroundingTryBlock
public static int getSizeOfSurroundingTryBlock(org.apache.bcel.classfile.ConstantPool constantPool, org.apache.bcel.classfile.Code code, @CheckForNull @SlashedClassName String vmNameOfExceptionClass, int pc)
-