public enum ClassConstant extends Enum<ClassConstant> implements StackManipulation
Class.| Modifier and Type | Class and Description | 
|---|---|
| protected static class  | ClassConstant.ForReferenceTypeA class constant for a non-primitive  Class. | 
StackManipulation.Compound, StackManipulation.Illegal, StackManipulation.LegalTrivial, StackManipulation.Size| Enum Constant and Description | 
|---|
| BOOLEANThe  booleantype. | 
| BYTEThe  bytetype. | 
| CHARACTERThe  chartype. | 
| DOUBLEThe  doubletype. | 
| FLOATThe  floattype. | 
| INTEGERThe  inttype. | 
| LONGThe  longtype. | 
| SHORTThe  shorttype. | 
| VOIDThe  voidtype. | 
| 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. | 
| boolean | isValid()Determines if this stack manipulation is valid. | 
| static StackManipulation | of(TypeDescription typeDescription)Returns a stack manipulation that loads a  Classtype onto the operand stack which
 represents the given type. | 
| static ClassConstant | valueOf(String name)Returns the enum constant of this type with the specified name. | 
| static ClassConstant[] | values()Returns an array containing the constants of this enum type, in
the order they are declared. | 
public static final ClassConstant VOID
void type.public static final ClassConstant BOOLEAN
boolean type.public static final ClassConstant BYTE
byte type.public static final ClassConstant SHORT
short type.public static final ClassConstant CHARACTER
char type.public static final ClassConstant INTEGER
int type.public static final ClassConstant LONG
long type.public static final ClassConstant FLOAT
float type.public static final ClassConstant DOUBLE
double type.public static ClassConstant[] values()
for (ClassConstant c : ClassConstant.values()) System.out.println(c);
public static ClassConstant 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 StackManipulation of(TypeDescription typeDescription)
Class type onto the operand stack which
 represents the given type.typeDescription - The type to load onto the operand stack.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–2015. All rights reserved.