Class BootstrapMethodsUtil


  • public class BootstrapMethodsUtil
    extends java.lang.Object
    Utility methods for working with bootstrap methods
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.Optional<org.apache.bcel.classfile.Method> getMethodFromBootstrap​(org.apache.bcel.classfile.BootstrapMethods bms, int index, org.apache.bcel.classfile.ConstantPool cp, org.apache.bcel.classfile.JavaClass cls)
      Returns the method representation of a bootstrap method from a Java class.
      • Methods inherited from class java.lang.Object

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

      • BootstrapMethodsUtil

        public BootstrapMethodsUtil()
    • Method Detail

      • getMethodFromBootstrap

        public static java.util.Optional<org.apache.bcel.classfile.Method> getMethodFromBootstrap​(org.apache.bcel.classfile.BootstrapMethods bms,
                                                                                                  int index,
                                                                                                  org.apache.bcel.classfile.ConstantPool cp,
                                                                                                  org.apache.bcel.classfile.JavaClass cls)
        Returns the method representation of a bootstrap method from a Java class.
        Parameters:
        bms - the BootstrapMethods attribute of a java class
        index - the index of the bootstrap method
        cp - the constant pool of the java class
        cls - the java class itself
        Returns:
        the bootstrap method represented as Method if found, Optional.empty() otherwise