Class MethodHandleConstant

  • All Implemented Interfaces:
    Printable

    public class MethodHandleConstant
    extends Constant
    MethodHandle constant.
    • Constructor Detail

      • MethodHandleConstant

        public MethodHandleConstant​(ClassInfo classInfo,
                                    ReferenceKind referenceKind,
                                    int referenceIndex)
        Constructs a new MethodHandleConstant instance.
        Parameters:
        classInfo - the ClassInfo instance this constant is part of.
        referenceKind - the reference type.
        referenceIndex - the referenced MethodRefConstant 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