Package net.bytebuddy.utility
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 Classes Modifier and Type Interface Description static class
ConstantValue.Simple
A simple representation of a constant value.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TypeDescription
getTypeDescription()
Returns a description of the type of this constant.StackManipulation
toStackManipulation()
Returns a stack manipulation loading this value.
-
-
-
Method Detail
-
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.
-
-