Class MethodTypeConstant


  • public class MethodTypeConstant
    extends Constant
    Constant representing a method type.
    Author:
    Franz-Josef Elmer
    • Constructor Summary

      Constructors 
      Constructor Description
      MethodTypeConstant​(Constant[] pool, int descriptorIndex)
      Creates an instance for the specified method reference.
    • Constructor Detail

      • MethodTypeConstant

        public MethodTypeConstant​(Constant[] pool,
                                  int descriptorIndex)
        Creates an instance for the specified method reference.
        Parameters:
        pool - Constant pool. Needed to resolve references.
    • Method Detail

      • getDescriptor

        public java.lang.String getDescriptor()
        Returns the type or method descriptor.
      • toString

        public java.lang.String toString()
        Returns constant type and descriptor.
        Overrides:
        toString in class java.lang.Object