Package net.bytebuddy.implementation.bytecode.constant
StackManipulation
s in this package are responsible for
creating compile-time constants and pushing them onto the operand stack.-
Interface Summary Interface Description MethodConstant.CanCache Represents aMethodConstant
that is directly loaded onto the operand stack without caching the value. -
Class Summary Class Description ClassConstant.ForReferenceType A class constant for a non-primitiveClass
.DoubleConstant.ConstantPool A stack manipulation for loading adouble
value from a class's constant pool onto the operand stack.FieldConstant Represents aField
constant for a given type.FieldConstant.Cached A cached version of aFieldConstant
.FloatConstant.ConstantPool A stack manipulation for loading afloat
value from a class's constant pool onto the operand stack.IntegerConstant.ConstantPool A stack manipulation that loads a JVM-integer value from a constant pool value onto the operand stack.IntegerConstant.SingleBytePush A stack manipulation that loads a JVM-integer value by aBIPUSH
operation which is legal for single byte integer values.IntegerConstant.TwoBytePush A stack manipulation that loads a JVM-integer value by aSIPUSH
operation which is legal for up to two byte integer values.JavaConstantValue A constant representing aJavaConstant
.LongConstant.ConstantPool A stack manipulation for loading along
value from a class's constant pool onto the operand stack.MethodConstant Represents the creation of aMethod
value which can be created from a given set of constant pool values and can therefore be considered a constant in the broader meaning.MethodConstant.CachedConstructor Represents a cached constructor for aMethodConstant
.MethodConstant.CachedMethod Represents a cached method for aMethodConstant
.MethodConstant.ForConstructor Creates aMethodConstant
for loading aConstructor
instance onto the operand stack.MethodConstant.ForMethod Creates aMethodConstant
for loading aMethod
instance onto the operand stack.MethodConstant.PrivilegedLookup Performs a privileged lookup of a method constant by using anAccessController
.SerializedConstant A constant that represents a value in its serialized form.TextConstant Represents aString
value that is stored in a type's constant pool. -
Enum Summary Enum Description ClassConstant Represents a constant representing any loaded JavaClass
.DefaultValue Represents a stack assignment that loads the default value of a given type onto the stack.DoubleConstant This class is responsible for loading anydouble
constant onto the operand stack.FloatConstant This class is responsible for loading anyfloat
constant onto the operand stack.IntegerConstant This class is responsible for loading anyint
constant onto the operand stack.LongConstant This class is responsible for loading anylong
constant onto the operand stack.MethodConstant.CanCacheIllegal Represents a method constant that cannot be represented by Java's reflection API.NullConstant Represents a stack manipulation to load anull
pointer onto the operand stack.