| Modifier and Type | Class and Description |
|---|---|
| protected static enum | PrimitiveUnboxingDelegate.ExplicitlyTypedUnboxingResponsible
An explicitly types unboxing responsible is applied for directly unboxing a wrapper type. |
| protected static class | PrimitiveUnboxingDelegate.ImplicitlyTypedUnboxingResponsible
An unboxing responsible for an implicitly typed value. |
| public static interface | PrimitiveUnboxingDelegate.UnboxingResponsible
Implementations represent an unboxing delegate that is able to perform the unboxing operation. |
| Modifier and Type | Field and Description |
|---|---|
| public static final PrimitiveUnboxingDelegate | BOOLEAN
The unboxing delegate for |
| public static final PrimitiveUnboxingDelegate | BYTE
The unboxing delegate for |
| public static final PrimitiveUnboxingDelegate | CHARACTER
The unboxing delegate for |
| public static final PrimitiveUnboxingDelegate | DOUBLE
The unboxing delegate for |
| public static final PrimitiveUnboxingDelegate | FLOAT
The unboxing delegate for |
| public static final PrimitiveUnboxingDelegate | INTEGER
The unboxing delegate for |
| public static final PrimitiveUnboxingDelegate | LONG
The unboxing delegate for |
| private final TypeDescription | primitiveType
The represented primitive type. |
| public static final PrimitiveUnboxingDelegate | SHORT
The unboxing delegate for |
| private final StackManipulation. | size
The size increase after a wrapper type was unwrapped. |
| private final String | unboxingMethodDescriptor
The descriptor of the method for unboxing a wrapper value to its primitive value. |
| private final String | unboxingMethodName
The name of the method for unboxing a wrapper value to its primitive value. |
| private final TypeDescription | wrapperType
The wrapper type of the represented primitive type. |
| Access | Constructor and Description |
|---|---|
| private | PrimitiveUnboxingDelegate(Class<?>
The wrapper type of the represented primitive type. wrapperType, Class<?> The represented primitive type. primitiveType, StackSize The size difference between the wrapper type and its primitive value. sizeDifference, String The name of the method for unboxing a wrapper value to its primitive value. unboxingMethodName, String The descriptor of the method for unboxing a wrapper value to its primitive value. unboxingMethodDescriptor)Creates a new primitive unboxing delegate. |
| 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 static PrimitiveUnboxingDelegate | Returns: A corresponding primitive unboxing delegate.A description of the primitive type. typeDefinition)Locates a primitive unboxing delegate for a given primitive type. |
| public static PrimitiveUnboxingDelegate. | Returns: An unboxing responsible capable of performing an unboxing operation while considering a further assignment of the unboxed value.A non-primitive type. typeDefinition)Creates an unboxing responsible that is capable of unboxing a wrapper type. |
| protected TypeDescription. | Returns: A generic version of this delegate's wrapper type.Returns the wrapper type that this unboxing delegate represents. |
| public boolean | isValid()
Implements net. |
| public static PrimitiveUnboxingDelegate | |
| public static PrimitiveUnboxingDelegate[] |
| BOOLEAN | back to summary |
|---|---|
| public static final PrimitiveUnboxingDelegate BOOLEAN The unboxing delegate for | |
| BYTE | back to summary |
|---|---|
| public static final PrimitiveUnboxingDelegate BYTE The unboxing delegate for | |
| CHARACTER | back to summary |
|---|---|
| public static final PrimitiveUnboxingDelegate CHARACTER The unboxing delegate for | |
| DOUBLE | back to summary |
|---|---|
| public static final PrimitiveUnboxingDelegate DOUBLE The unboxing delegate for | |
| FLOAT | back to summary |
|---|---|
| public static final PrimitiveUnboxingDelegate FLOAT The unboxing delegate for | |
| INTEGER | back to summary |
|---|---|
| public static final PrimitiveUnboxingDelegate INTEGER The unboxing delegate for | |
| LONG | back to summary |
|---|---|
| public static final PrimitiveUnboxingDelegate LONG The unboxing delegate for | |
| primitiveType | back to summary |
|---|---|
| private final TypeDescription primitiveType The represented primitive type. | |
| SHORT | back to summary |
|---|---|
| public static final PrimitiveUnboxingDelegate SHORT The unboxing delegate for | |
| size | back to summary |
|---|---|
| private final StackManipulation. The size increase after a wrapper type was unwrapped. | |
| unboxingMethodDescriptor | back to summary |
|---|---|
| private final String unboxingMethodDescriptor The descriptor of the method for unboxing a wrapper value to its primitive value. | |
| unboxingMethodName | back to summary |
|---|---|
| private final String unboxingMethodName The name of the method for unboxing a wrapper value to its primitive value. | |
| wrapperType | back to summary |
|---|---|
| private final TypeDescription wrapperType The wrapper type of the represented primitive type. | |
| PrimitiveUnboxingDelegate | back to summary |
|---|---|
| private PrimitiveUnboxingDelegate(Class<?> wrapperType, Class<?> primitiveType, StackSize sizeDifference, String unboxingMethodName, String unboxingMethodDescriptor) Creates a new primitive unboxing delegate.
| |
| apply | back to summary |
|---|---|
| public StackManipulation. Implements net. Doc from net. Applies the stack manipulation that is described by this instance.
| |
| forPrimitive | back to summary |
|---|---|
| public static PrimitiveUnboxingDelegate forPrimitive(TypeDefinition typeDefinition) Locates a primitive unboxing delegate for a given primitive type.
| |
| forReferenceType | back to summary |
|---|---|
| public static PrimitiveUnboxingDelegate. Creates an unboxing responsible that is capable of unboxing a wrapper type.
| |
| getWrapperType | back to summary |
|---|---|
| protected TypeDescription. Returns the wrapper type that this unboxing delegate represents.
| |
| isValid | back to summary |
|---|---|
| public boolean isValid() Implements net. Doc from net. Determines if this stack manipulation is valid.
| |
| valueOf | back to summary |
|---|---|
| public static PrimitiveUnboxingDelegate valueOf(String name) | |
| values | back to summary |
|---|---|
| public static PrimitiveUnboxingDelegate[] values() | |
| Access | Constructor and Description |
|---|---|
| private | ExplicitlyTypedUnboxingResponsible(PrimitiveUnboxingDelegate
The primitive unboxing delegate for handling the given wrapper type. primitiveUnboxingDelegate)Creates a new explicitly typed unboxing responsible. |
| Modifier and Type | Method and Description |
|---|---|
| public StackManipulation | assignUnboxedTo(TypeDescription.
The type that is the desired outcome of the assignment. targetType,The assigner used to assign the unboxed type to the target type. assigner, Assigner.Determines if a type-casting should be attempted for incompatible types. typing |
| public static PrimitiveUnboxingDelegate. | |
| public static PrimitiveUnboxingDelegate. |
| BOOLEAN | back to summary |
|---|---|
| public static final PrimitiveUnboxingDelegate. An unboxing responsible for unboxing a | |
| BYTE | back to summary |
|---|---|
| public static final PrimitiveUnboxingDelegate. An unboxing responsible for unboxing a | |
| CHARACTER | back to summary |
|---|---|
| public static final PrimitiveUnboxingDelegate. An unboxing responsible for unboxing a | |
| DOUBLE | back to summary |
|---|---|
| public static final PrimitiveUnboxingDelegate. An unboxing responsible for unboxing a | |
| FLOAT | back to summary |
|---|---|
| public static final PrimitiveUnboxingDelegate. An unboxing responsible for unboxing a | |
| INTEGER | back to summary |
|---|---|
| public static final PrimitiveUnboxingDelegate. An unboxing responsible for unboxing a | |
| LONG | back to summary |
|---|---|
| public static final PrimitiveUnboxingDelegate. An unboxing responsible for unboxing a | |
| primitiveUnboxingDelegate | back to summary |
|---|---|
| private final PrimitiveUnboxingDelegate primitiveUnboxingDelegate The primitive unboxing delegate for handling the given wrapper type. | |
| SHORT | back to summary |
|---|---|
| public static final PrimitiveUnboxingDelegate. An unboxing responsible for unboxing a | |
| ExplicitlyTypedUnboxingResponsible | back to summary |
|---|---|
| private ExplicitlyTypedUnboxingResponsible(PrimitiveUnboxingDelegate primitiveUnboxingDelegate) Creates a new explicitly typed unboxing responsible.
| |
| assignUnboxedTo | back to summary |
|---|---|
| public StackManipulation assignUnboxedTo(TypeDescription. Attempts to unbox the represented type in order to assign the unboxed value to the given target type while using the assigner that is provided by the method call.
| |
| valueOf | back to summary |
|---|---|
| public static PrimitiveUnboxingDelegate. | |
| values | back to summary |
|---|---|
| public static PrimitiveUnboxingDelegate. | |
| Modifier and Type | Field and Description |
|---|---|
| private final TypeDescription. | originalType
The original type which should be unboxed but is not of any known wrapper type. |
| Access | Constructor and Description |
|---|---|
| protected | ImplicitlyTypedUnboxingResponsible(TypeDescription.
The original type which should be unboxed but is not of any known wrapper type. originalTypeCreates a new implicitly typed unboxing responsible. |
| Modifier and Type | Method and Description |
|---|---|
| public StackManipulation | assignUnboxedTo(TypeDescription.
The type that is the desired outcome of the assignment. target,The assigner used to assign the unboxed type to the target type. assigner, Assigner.Determines if a type-casting should be attempted for incompatible types. typing |
| originalType | back to summary |
|---|---|
| private final TypeDescription. The original type which should be unboxed but is not of any known wrapper type. | |
| ImplicitlyTypedUnboxingResponsible | back to summary |
|---|---|
| protected ImplicitlyTypedUnboxingResponsible(TypeDescription. Creates a new implicitly typed unboxing responsible.
| |
| assignUnboxedTo | back to summary |
|---|---|
| public StackManipulation assignUnboxedTo(TypeDescription. Attempts to unbox the represented type in order to assign the unboxed value to the given target type while using the assigner that is provided by the method call.
| |
| Modifier and Type | Method and Description |
|---|---|
| public StackManipulation | Returns: A stack manipulation representing this assignment if such an assignment is possible. An illegal assignment otherwise.The type that is the desired outcome of the assignment. target,The assigner used to assign the unboxed type to the target type. assigner, Assigner.Determines if a type-casting should be attempted for incompatible types. typingAttempts to unbox the represented type in order to assign the unboxed value to the given target type while using the assigner that is provided by the method call. |
| assignUnboxedTo | back to summary |
|---|---|
| public StackManipulation assignUnboxedTo(TypeDescription. Attempts to unbox the represented type in order to assign the unboxed value to the given target type while using the assigner that is provided by the method call.
| |