Class MethodTypeConstant

  • All Implemented Interfaces:
    Printable

    public class MethodTypeConstant
    extends Constant
    MethodType constant.
    • Constructor Detail

      • MethodTypeConstant

        public MethodTypeConstant​(ClassInfo classInfo,
                                  int descriptorIndex)
        Constructs a new MethodTypeConstant instance.
        Parameters:
        classInfo - the ClassInfo instance this constant is part of.
        descriptorIndex - the method descriptor index.
    • Method Detail

      • print

        public void print​(ClassPrinter out,
                          ClassContext context)
                   throws java.io.IOException
        Description copied from interface: Printable
        Prints this instance.
        Parameters:
        out - the ClassPrinter instance to print to.
        context - the context of this print invocation.
        Throws:
        java.io.IOException - if an I/O error occurs.
      • resolveSymbol

        public java.lang.String resolveSymbol()
                                       throws java.io.IOException
        Description copied from class: Constant
        Resolves the symbol representing this Constant instance.
        Overrides:
        resolveSymbol in class Constant
        Returns:
        the symbol representing this Constant instance.
        Throws:
        java.io.IOException - if the constant cannot be resolved.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object