Interface ConstantValue

All Known Subinterfaces:
JavaConstant
All Known Implementing Classes:
ConstantValue.Simple, JavaConstant.Dynamic, JavaConstant.MethodHandle, JavaConstant.MethodType, JavaConstant.Simple, JavaConstant.Simple.OfTrivialValue, JavaConstant.Simple.OfTrivialValue.ForDouble, JavaConstant.Simple.OfTrivialValue.ForFloat, JavaConstant.Simple.OfTrivialValue.ForInteger, JavaConstant.Simple.OfTrivialValue.ForLong, JavaConstant.Simple.OfTrivialValue.ForString, JavaConstant.Simple.OfTypeDescription

public interface ConstantValue
Represents a value that can be represented as a constant expression or constant pool value.
  • Method Details

    • getTypeDescription

      TypeDescription getTypeDescription()
      Returns a description of the type of this constant.
      Returns:
      A description of the type of this constant.
    • toStackManipulation

      StackManipulation toStackManipulation()
      Returns a stack manipulation loading this value.
      Returns:
      A stack manipulation loading this value.