public static enum Instrumentation.SpecialMethodInvocation.Illegal extends Enum<Instrumentation.SpecialMethodInvocation.Illegal> implements Instrumentation.SpecialMethodInvocation
Instrumentation.SpecialMethodInvocation.Instrumentation.SpecialMethodInvocation.Illegal, Instrumentation.SpecialMethodInvocation.SimpleStackManipulation.Compound, StackManipulation.LegalTrivial, StackManipulation.Size| Enum Constant and Description |
|---|
INSTANCE
The singleton instance.
|
| 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.
|
MethodDescription |
getMethodDescription()
Returns the method that represents this special method invocation.
|
TypeDescription |
getTypeDescription()
Returns the target type the represented method is invoked on.
|
boolean |
isValid()
Determines if this stack manipulation is valid.
|
static Instrumentation.SpecialMethodInvocation.Illegal |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Instrumentation.SpecialMethodInvocation.Illegal[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Instrumentation.SpecialMethodInvocation.Illegal INSTANCE
public static Instrumentation.SpecialMethodInvocation.Illegal[] values()
for (Instrumentation.SpecialMethodInvocation.Illegal c : Instrumentation.SpecialMethodInvocation.Illegal.values()) System.out.println(c);
public static Instrumentation.SpecialMethodInvocation.Illegal 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 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.public MethodDescription getMethodDescription()
Instrumentation.SpecialMethodInvocationInstrumentation.Target.getMethodDescription in interface Instrumentation.SpecialMethodInvocationpublic TypeDescription getTypeDescription()
Instrumentation.SpecialMethodInvocationgetTypeDescription in interface Instrumentation.SpecialMethodInvocationCopyright © 2014. All rights reserved.