Package org.powermock.core.bytebuddy
Enum PrimitiveBoxing
- All Implemented Interfaces:
Serializable
,Comparable<PrimitiveBoxing>
,java.lang.constant.Constable
,net.bytebuddy.implementation.bytecode.StackManipulation
public enum PrimitiveBoxing
extends Enum<PrimitiveBoxing>
implements net.bytebuddy.implementation.bytecode.StackManipulation
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
Nested classes/interfaces inherited from interface net.bytebuddy.implementation.bytecode.StackManipulation
net.bytebuddy.implementation.bytecode.StackManipulation.AbstractBase, net.bytebuddy.implementation.bytecode.StackManipulation.Compound, net.bytebuddy.implementation.bytecode.StackManipulation.Illegal, net.bytebuddy.implementation.bytecode.StackManipulation.Simple, net.bytebuddy.implementation.bytecode.StackManipulation.Size, net.bytebuddy.implementation.bytecode.StackManipulation.Trivial
-
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
PrimitiveBoxing
(Class<?> wrapperType, net.bytebuddy.implementation.bytecode.StackSize sizeDifference, String boxingMethodName, String boxingMethodDescriptor) -
Method Summary
Modifier and TypeMethodDescriptionnet.bytebuddy.implementation.bytecode.StackManipulation.Size
apply
(org.objectweb.asm.MethodVisitor methodVisitor, net.bytebuddy.implementation.Implementation.Context implementationContext) static PrimitiveBoxing
forPrimitive
(net.bytebuddy.description.type.TypeDefinition typeDefinition) boolean
isValid()
static PrimitiveBoxing
Returns the enum constant of this type with the specified name.static PrimitiveBoxing[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
BOOLEAN
-
BYTE
-
SHORT
-
CHARACTER
-
INTEGER
-
LONG
-
FLOAT
-
DOUBLE
-
-
Field Details
-
wrapperType
private final net.bytebuddy.description.type.TypeDescription.ForLoadedType wrapperType -
size
private final net.bytebuddy.implementation.bytecode.StackManipulation.Size size -
boxingMethodName
-
boxingMethodDescriptor
-
-
Constructor Details
-
PrimitiveBoxing
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
forPrimitive
public static PrimitiveBoxing forPrimitive(net.bytebuddy.description.type.TypeDefinition typeDefinition) -
isValid
public boolean isValid()- Specified by:
isValid
in interfacenet.bytebuddy.implementation.bytecode.StackManipulation
-
apply
public net.bytebuddy.implementation.bytecode.StackManipulation.Size apply(org.objectweb.asm.MethodVisitor methodVisitor, net.bytebuddy.implementation.Implementation.Context implementationContext) - Specified by:
apply
in interfacenet.bytebuddy.implementation.bytecode.StackManipulation
-