Class MethodHandleConstant

java.lang.Object
classycle.classfile.Constant
classycle.classfile.MethodHandleConstant

public class MethodHandleConstant extends Constant
Constant representing a method handle.
Author:
Franz-Josef Elmer
  • Constructor Details

    • MethodHandleConstant

      public MethodHandleConstant(Constant[] pool, int referenceKind, int referenceIndex)
      Creates an instance for the specified method reference.
      Parameters:
      pool - Constant pool. Needed to resolve references.
  • Method Details

    • toString

      public String toString()
      Returns constant type, reference kind, and index.
      Overrides:
      toString in class Object