Interface JavaConstant

  • All Known Implementing Classes:
    JavaConstant.MethodHandle, JavaConstant.MethodType

    public interface JavaConstant
    Returns a Java instance of an object that has a special meaning to the Java virtual machine and that is not available to Java in versions 6.
    • Method Detail

      • asConstantPoolValue

        java.lang.Object asConstantPoolValue()
        Returns the represented instance as a constant pool value.
        Returns:
        The constant pool value in a format that can be written by ASM.
      • asStackManipulation

        StackManipulation asStackManipulation()
        Returns the instance as loadable onto the operand stack.
        Returns:
        A stack manipulation that loads the represented value onto the operand stack.
      • getType

        TypeDescription getType()
        Returns a description of the type of the represented instance or at least a stub.
        Returns:
        A description of the type of the represented instance or at least a stub.