Class MethodInfo


  • public class MethodInfo
    extends Object
    A resolved method reference: owner class, name, descriptor, and invocation kind flags.
    • Constructor Detail

      • MethodInfo

        public MethodInfo​(String ownerClass,
                          String methodName,
                          String descriptor,
                          boolean isStatic,
                          boolean isInterface)
        Creates a non-special method reference.
        Parameters:
        ownerClass - internal name of the declaring class
        methodName - the method's name
        descriptor - the method's descriptor
        isStatic - whether the method is invoked statically
        isInterface - whether the method is invoked via invokeinterface
      • MethodInfo

        public MethodInfo​(String ownerClass,
                          String methodName,
                          String descriptor,
                          boolean isStatic,
                          boolean isInterface,
                          boolean isSpecial)
        Creates a method reference.
        Parameters:
        ownerClass - internal name of the declaring class
        methodName - the method's name
        descriptor - the method's descriptor
        isStatic - whether the method is invoked statically
        isInterface - whether the method is invoked via invokeinterface
        isSpecial - whether the method is invoked via invokespecial
    • Method Detail

      • getOwnerClass

        public String getOwnerClass()
        Returns:
        the owner class
      • getMethodName

        public String getMethodName()
        Returns:
        the method name
      • getDescriptor

        public String getDescriptor()
        Returns:
        the descriptor
      • isStatic

        public boolean isStatic()
        Returns:
        whether static
      • isInterface

        public boolean isInterface()
        Returns:
        whether interface
      • isSpecial

        public boolean isSpecial()
        Returns:
        whether special