Class Util


  • public class Util
    extends java.lang.Object
    Author:
    pugh
    • Constructor Summary

      Constructors 
      Constructor Description
      Util()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static 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, java.lang.String vmNameOfExceptionClass, int pc)  
      static int getSizeOfSurroundingTryBlock​(org.apache.bcel.classfile.Method method, java.lang.Class<? extends java.lang.Throwable> exceptionClass, int pc)  
      static int getSizeOfSurroundingTryBlock​(org.apache.bcel.classfile.Method method, java.lang.String vmNameOfExceptionClass, int pc)  
      static org.apache.bcel.classfile.CodeException getSurroundingTryBlock​(org.apache.bcel.classfile.ConstantPool constantPool, org.apache.bcel.classfile.Code code, java.lang.String vmNameOfExceptionClass, int pc)  
      • Methods inherited from class java.lang.Object

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

      • Util

        public Util()
    • Method Detail

      • getOuterClass

        @CheckForNull
        public static org.apache.bcel.classfile.JavaClass getOuterClass​(org.apache.bcel.classfile.JavaClass obj)
                                                                 throws java.lang.ClassNotFoundException
        Determine the outer class of obj.
        Parameters:
        obj -
        Returns:
        JavaClass for outer class, or null if obj is not an outer class
        Throws:
        java.lang.ClassNotFoundException
      • getSizeOfSurroundingTryBlock

        public static int getSizeOfSurroundingTryBlock​(@CheckForNull
                                                       org.apache.bcel.classfile.Method method,
                                                       java.lang.Class<? extends java.lang.Throwable> exceptionClass,
                                                       int pc)
      • getSizeOfSurroundingTryBlock

        public static int getSizeOfSurroundingTryBlock​(@CheckForNull
                                                       org.apache.bcel.classfile.Method method,
                                                       @CheckForNull
                                                       java.lang.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
                                                                                     java.lang.String vmNameOfExceptionClass,
                                                                                     int pc)
      • getSizeOfSurroundingTryBlock

        public static int getSizeOfSurroundingTryBlock​(org.apache.bcel.classfile.ConstantPool constantPool,
                                                       org.apache.bcel.classfile.Code code,
                                                       @CheckForNull @SlashedClassName
                                                       java.lang.String vmNameOfExceptionClass,
                                                       int pc)