public enum PrimitiveBoxingDelegate extends Enum<PrimitiveBoxingDelegate>
Enum Constant and Description |
---|
BOOLEAN |
BYTE |
CHARACTER |
DOUBLE |
FLOAT |
INTEGER |
LONG |
SHORT |
Modifier and Type | Method and Description |
---|---|
StackManipulation |
assignBoxedTo(TypeDescription targetType,
Assigner chainedAssigner,
boolean considerRuntimeType)
Creates a stack manipulation that boxes the represented primitive type and applies a chained assignment
to the result of this boxing operation.
|
static PrimitiveBoxingDelegate |
forPrimitive(TypeDescription typeDescription)
Locates a boxing delegate for a given primitive type.
|
static PrimitiveBoxingDelegate |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PrimitiveBoxingDelegate[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PrimitiveBoxingDelegate BOOLEAN
public static final PrimitiveBoxingDelegate BYTE
public static final PrimitiveBoxingDelegate SHORT
public static final PrimitiveBoxingDelegate CHARACTER
public static final PrimitiveBoxingDelegate INTEGER
public static final PrimitiveBoxingDelegate LONG
public static final PrimitiveBoxingDelegate FLOAT
public static final PrimitiveBoxingDelegate DOUBLE
public static PrimitiveBoxingDelegate[] values()
for (PrimitiveBoxingDelegate c : PrimitiveBoxingDelegate.values()) System.out.println(c);
public static PrimitiveBoxingDelegate valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static PrimitiveBoxingDelegate forPrimitive(TypeDescription typeDescription)
typeDescription
- A non-void primitive type.public StackManipulation assignBoxedTo(TypeDescription targetType, Assigner chainedAssigner, boolean considerRuntimeType)
targetType
- The type that is target of the assignment operation.chainedAssigner
- The assigner that is to be used to perform the chained assignment.considerRuntimeType
- If true
, unsafe cast operations are allowed for performing an assignment.Copyright © 2014. All rights reserved.