Package org.powermock.core.bytebuddy
Enum PrimitiveBoxing
- java.lang.Object
-
- java.lang.Enum<PrimitiveBoxing>
-
- org.powermock.core.bytebuddy.PrimitiveBoxing
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<PrimitiveBoxing>
,net.bytebuddy.implementation.bytecode.StackManipulation
public enum PrimitiveBoxing extends java.lang.Enum<PrimitiveBoxing> implements net.bytebuddy.implementation.bytecode.StackManipulation
-
-
Nested Class Summary
-
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
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
boxingMethodDescriptor
private java.lang.String
boxingMethodName
private net.bytebuddy.implementation.bytecode.StackManipulation.Size
size
private net.bytebuddy.description.type.TypeDescription.ForLoadedType
wrapperType
-
Constructor Summary
Constructors Modifier Constructor Description private
PrimitiveBoxing(java.lang.Class<?> wrapperType, net.bytebuddy.implementation.bytecode.StackSize sizeDifference, java.lang.String boxingMethodName, java.lang.String boxingMethodDescriptor)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description net.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
valueOf(java.lang.String name)
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 Detail
-
BOOLEAN
public static final PrimitiveBoxing BOOLEAN
-
BYTE
public static final PrimitiveBoxing BYTE
-
SHORT
public static final PrimitiveBoxing SHORT
-
CHARACTER
public static final PrimitiveBoxing CHARACTER
-
INTEGER
public static final PrimitiveBoxing INTEGER
-
LONG
public static final PrimitiveBoxing LONG
-
FLOAT
public static final PrimitiveBoxing FLOAT
-
DOUBLE
public static final PrimitiveBoxing DOUBLE
-
-
Field Detail
-
wrapperType
private final net.bytebuddy.description.type.TypeDescription.ForLoadedType wrapperType
-
size
private final net.bytebuddy.implementation.bytecode.StackManipulation.Size size
-
boxingMethodName
private final java.lang.String boxingMethodName
-
boxingMethodDescriptor
private final java.lang.String boxingMethodDescriptor
-
-
Method Detail
-
values
public static PrimitiveBoxing[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (PrimitiveBoxing c : PrimitiveBoxing.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PrimitiveBoxing valueOf(java.lang.String name)
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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- 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
-
-