Class 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AttributesUtils

        private AttributesUtils()
    • 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 from
        pc - the pc to check
        Returns:
        whether the pc is in user code