Class MethodHandleConstant

All Implemented Interfaces:
Serializable, Processable

public class MethodHandleConstant extends Constant
This Constant represents a method handle constant in the constant pool.
See Also:
  • Field Details

    • REF_GET_FIELD

      public static final int REF_GET_FIELD
      See Also:
    • REF_GET_STATIC

      public static final int REF_GET_STATIC
      See Also:
    • REF_PUT_FIELD

      public static final int REF_PUT_FIELD
      See Also:
    • REF_PUT_STATIC

      public static final int REF_PUT_STATIC
      See Also:
    • REF_INVOKE_VIRTUAL

      public static final int REF_INVOKE_VIRTUAL
      See Also:
    • REF_INVOKE_STATIC

      public static final int REF_INVOKE_STATIC
      See Also:
    • REF_INVOKE_SPECIAL

      public static final int REF_INVOKE_SPECIAL
      See Also:
    • REF_NEW_INVOKE_SPECIAL

      public static final int REF_NEW_INVOKE_SPECIAL
      See Also:
    • REF_INVOKE_INTERFACE

      public static final int REF_INVOKE_INTERFACE
      See Also:
    • u1referenceKind

      public int u1referenceKind
    • u2referenceIndex

      public int u2referenceIndex
    • javaLangInvokeMethodHandleClass

      public Clazz javaLangInvokeMethodHandleClass
      An extra field pointing to the java.lang.invoke.MethodHandle Clazz object. This field is typically filled out by the ClassReferenceInitializer.
  • Constructor Details

    • MethodHandleConstant

      public MethodHandleConstant()
      Creates an uninitialized MethodHandleConstant.
    • MethodHandleConstant

      public MethodHandleConstant(int u1referenceKind, int u2referenceIndex)
      Creates a new MethodHandleConstant with the given type and method ref index.
      Parameters:
      u1referenceKind - the reference kind.
      u2referenceIndex - the index of the field ref constant, interface method ref constant, or method ref constant in the constant pool.
  • Method Details