| Modifier and Type | Class and Description |
|---|---|
| private class | PrimitiveBoxingDelegate.BoxingStackManipulation
A stack manipulation for boxing a primitive type into its wrapper type. |
| Modifier and Type | Field and Description |
|---|---|
| public static final PrimitiveBoxingDelegate | BOOLEAN
The boxing delegate for |
| private final String | boxingMethodDescriptor
The descriptor of the method for boxing a primitive value as its wrapper type. |
| private final String | boxingMethodName
The name of the method for boxing a primitive value as its wrapper type. |
| public static final PrimitiveBoxingDelegate | BYTE
The boxing delegate for |
| public static final PrimitiveBoxingDelegate | CHARACTER
The boxing delegate for |
| public static final PrimitiveBoxingDelegate | DOUBLE
The boxing delegate for |
| public static final PrimitiveBoxingDelegate | FLOAT
The boxing delegate for |
| public static final PrimitiveBoxingDelegate | INTEGER
The boxing delegate for |
| public static final PrimitiveBoxingDelegate | LONG
The boxing delegate for |
| public static final PrimitiveBoxingDelegate | SHORT
The boxing delegate for |
| private final StackManipulation. | size
The size decrease after a primitive type was wrapped. |
| private final TypeDescription | wrapperType
A description of a wrapper type. |
| Access | Constructor and Description |
|---|---|
| private | PrimitiveBoxingDelegate(Class<?>
A description of a wrapper type. wrapperType, StackSize The size difference between a primitive type and its wrapper type. sizeDifference, String The name of the method for boxing a primitive value as its wrapper type. boxingMethodName, String The descriptor of the method for boxing a primitive value as its wrapper type. boxingMethodDescriptor)Creates a new primitive boxing delegate. |
| Modifier and Type | Method and Description |
|---|---|
| public StackManipulation | Returns: A stack manipulation that represents the described assignment operation.The type that is target of the assignment operation. target,The assigner that is to be used to perform the chained assignment. chainedAssigner, Assigner.Determines if an assignment to an incompatible type should be enforced by a casting. typingCreates a stack manipulation that boxes the represented primitive type and applies a chained assignment to the result of this boxing operation. |
| public static PrimitiveBoxingDelegate | Returns: A delegate capable of boxing the given primitive type.A non-void primitive type. typeDefinition)Locates a boxing delegate for a given primitive type. |
| public static PrimitiveBoxingDelegate | |
| public static PrimitiveBoxingDelegate[] |
| BOOLEAN | back to summary |
|---|---|
| public static final PrimitiveBoxingDelegate BOOLEAN The boxing delegate for | |
| boxingMethodDescriptor | back to summary |
|---|---|
| private final String boxingMethodDescriptor The descriptor of the method for boxing a primitive value as its wrapper type. | |
| boxingMethodName | back to summary |
|---|---|
| private final String boxingMethodName The name of the method for boxing a primitive value as its wrapper type. | |
| BYTE | back to summary |
|---|---|
| public static final PrimitiveBoxingDelegate BYTE The boxing delegate for | |
| CHARACTER | back to summary |
|---|---|
| public static final PrimitiveBoxingDelegate CHARACTER The boxing delegate for | |
| DOUBLE | back to summary |
|---|---|
| public static final PrimitiveBoxingDelegate DOUBLE The boxing delegate for | |
| FLOAT | back to summary |
|---|---|
| public static final PrimitiveBoxingDelegate FLOAT The boxing delegate for | |
| INTEGER | back to summary |
|---|---|
| public static final PrimitiveBoxingDelegate INTEGER The boxing delegate for | |
| LONG | back to summary |
|---|---|
| public static final PrimitiveBoxingDelegate LONG The boxing delegate for | |
| SHORT | back to summary |
|---|---|
| public static final PrimitiveBoxingDelegate SHORT The boxing delegate for | |
| size | back to summary |
|---|---|
| private final StackManipulation. The size decrease after a primitive type was wrapped. | |
| wrapperType | back to summary |
|---|---|
| private final TypeDescription wrapperType A description of a wrapper type. | |
| PrimitiveBoxingDelegate | back to summary |
|---|---|
| private PrimitiveBoxingDelegate(Class<?> wrapperType, StackSize sizeDifference, String boxingMethodName, String boxingMethodDescriptor) Creates a new primitive boxing delegate.
| |
| assignBoxedTo | back to summary |
|---|---|
| public StackManipulation assignBoxedTo(TypeDescription. Creates a stack manipulation that boxes the represented primitive type and applies a chained assignment to the result of this boxing operation.
| |
| forPrimitive | back to summary |
|---|---|
| public static PrimitiveBoxingDelegate forPrimitive(TypeDefinition typeDefinition) Locates a boxing delegate for a given primitive type.
| |
| valueOf | back to summary |
|---|---|
| public static PrimitiveBoxingDelegate valueOf(String name) | |
| values | back to summary |
|---|---|
| public static PrimitiveBoxingDelegate[] values() | |
| Modifier and Type | Field and Description |
|---|---|
| private final StackManipulation | stackManipulation
A stack manipulation that is applied after the boxing of the top-most value on the operand stack. |
| Access | Constructor and Description |
|---|---|
| public | BoxingStackManipulation(StackManipulation
A stack manipulation that is applied after the boxing of the top-most value on
the operand stack. stackManipulation)Creates a new boxing stack manipulation. |
| Modifier and Type | Method and Description |
|---|---|
| public StackManipulation. | apply(MethodVisitor
The method visitor used to write the method implementation to. methodVisitor, Implementation.The context of the current implementation. implementationContextImplements net. |
| public boolean | isValid()
Implements net. |
| stackManipulation | back to summary |
|---|---|
| private final StackManipulation stackManipulation A stack manipulation that is applied after the boxing of the top-most value on the operand stack. | |
| BoxingStackManipulation | back to summary |
|---|---|
| public BoxingStackManipulation(StackManipulation stackManipulation) Creates a new boxing stack manipulation.
| |
| apply | back to summary |
|---|---|
| public StackManipulation. Implements net. Doc from net. Applies the stack manipulation that is described by this instance.
| |
| isValid | back to summary |
|---|---|
| public boolean isValid() Implements net. Doc from net. Determines if this stack manipulation is valid.
| |