Package com.mebigfatguy.fbcontrib.utils
Class AttributesUtils
- java.lang.Object
-
- com.mebigfatguy.fbcontrib.utils.AttributesUtils
-
public final class AttributesUtils extends java.lang.Object
a collection of static methods for working with code attribute queries
-
-
Constructor Summary
Constructors Modifier Constructor Description private
AttributesUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
isValidLineNumber(org.apache.bcel.classfile.Code obj, int pc)
returns whether the pc is at a line number that also appears for a another byte code offset later on in the method.
-
-
-
Method Detail
-
isValidLineNumber
public static boolean isValidLineNumber(org.apache.bcel.classfile.Code obj, int pc)
returns whether the pc is at a line number that also appears for a another byte code offset later on in the method. If this occurs we are in a jdk6 finally replicated block, and so don't report this. If the code has no line number table, then just report it.- Parameters:
obj
- the code object to find line number attributes frompc
- the pc to check- Returns:
- whether the pc is in user code
-
-