public enum PrimitiveUnboxingDelegate extends Enum<PrimitiveUnboxingDelegate> implements StackManipulation
| Modifier and Type | Class and Description | 
|---|---|
| static interface  | PrimitiveUnboxingDelegate.UnboxingResponsibleImplementations represent an unboxing delegate that is able to perform the unboxing operation. | 
StackManipulation.Compound, StackManipulation.Illegal, StackManipulation.LegalTrivial, StackManipulation.Size| Enum Constant and Description | 
|---|
| BOOLEANThe unboxing delegate for  Booleantypes. | 
| BYTEThe unboxing delegate for  Bytetypes. | 
| CHARACTERThe unboxing delegate for  Charactertypes. | 
| DOUBLEThe unboxing delegate for  Doubletypes. | 
| FLOATThe unboxing delegate for  Floattypes. | 
| INTEGERThe unboxing delegate for  Integertypes. | 
| LONGThe unboxing delegate for  Longtypes. | 
| SHORTThe unboxing delegate for  Shorttypes. | 
| Modifier and Type | Method and Description | 
|---|---|
| StackManipulation.Size | apply(org.objectweb.asm.MethodVisitor methodVisitor,
     Instrumentation.Context instrumentationContext)Applies the stack manipulation that is described by this instance. | 
| static PrimitiveUnboxingDelegate.UnboxingResponsible | forReferenceType(TypeDescription typeDescription)Creates an unboxing responsible that is capable of unboxing a wrapper type. | 
| boolean | isValid()Determines if this stack manipulation is valid. | 
| static PrimitiveUnboxingDelegate | valueOf(String name)Returns the enum constant of this type with the specified name. | 
| static PrimitiveUnboxingDelegate[] | values()Returns an array containing the constants of this enum type, in
the order they are declared. | 
public static final PrimitiveUnboxingDelegate BOOLEAN
Boolean types.public static final PrimitiveUnboxingDelegate BYTE
Byte types.public static final PrimitiveUnboxingDelegate SHORT
Short types.public static final PrimitiveUnboxingDelegate CHARACTER
Character types.public static final PrimitiveUnboxingDelegate INTEGER
Integer types.public static final PrimitiveUnboxingDelegate LONG
Long types.public static final PrimitiveUnboxingDelegate FLOAT
Float types.public static final PrimitiveUnboxingDelegate DOUBLE
Double types.public static PrimitiveUnboxingDelegate[] values()
for (PrimitiveUnboxingDelegate c : PrimitiveUnboxingDelegate.values()) System.out.println(c);
public static PrimitiveUnboxingDelegate 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 PrimitiveUnboxingDelegate.UnboxingResponsible forReferenceType(TypeDescription typeDescription)
PrimitiveUnboxingDelegate.UnboxingResponsible
 in order to then check if the given type is assignable to the inferred wrapper type.typeDescription - A non-primitive type.public boolean isValid()
StackManipulationisValid in interface StackManipulationfalse, this manipulation cannot be applied and should throw an exception.public StackManipulation.Size apply(org.objectweb.asm.MethodVisitor methodVisitor, Instrumentation.Context instrumentationContext)
StackManipulationapply in interface StackManipulationmethodVisitor - The method visitor used to write the method implementation to.instrumentationContext - The context of the current instrumentation.Copyright © 2014. All rights reserved.