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.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classA simple representation of a constant value. -
Method Summary
Modifier and TypeMethodDescriptionReturns a description of the type of this constant.Returns a stack manipulation loading this 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.
-