public static enum MethodCall.TargetHandler.ForConstructingInvocation extends Enum<MethodCall.TargetHandler.ForConstructingInvocation> implements MethodCall.TargetHandler
MethodCall.TargetHandler.ForConstructingInvocation, MethodCall.TargetHandler.ForInstanceField, MethodCall.TargetHandler.ForSelfOrStaticInvocation, MethodCall.TargetHandler.ForStaticField| Enum Constant and Description |
|---|
INSTANCE
The singleton instance.
|
| Modifier and Type | Method and Description |
|---|---|
InstrumentedType |
prepare(InstrumentedType instrumentedType)
Prepares the instrumented type in order to allow for the represented invocation.
|
StackManipulation |
resolve(MethodDescription methodDescription,
TypeDescription instrumentedType)
Creates a stack manipulation that represents the method's invocation.
|
String |
toString() |
static MethodCall.TargetHandler.ForConstructingInvocation |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MethodCall.TargetHandler.ForConstructingInvocation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MethodCall.TargetHandler.ForConstructingInvocation INSTANCE
public static MethodCall.TargetHandler.ForConstructingInvocation[] values()
for (MethodCall.TargetHandler.ForConstructingInvocation c : MethodCall.TargetHandler.ForConstructingInvocation.values()) System.out.println(c);
public static MethodCall.TargetHandler.ForConstructingInvocation 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 StackManipulation resolve(MethodDescription methodDescription, TypeDescription instrumentedType)
MethodCall.TargetHandlerresolve in interface MethodCall.TargetHandlermethodDescription - The method to be invoked.instrumentedType - The instrumented type.public InstrumentedType prepare(InstrumentedType instrumentedType)
MethodCall.TargetHandlerprepare in interface MethodCall.TargetHandlerinstrumentedType - The instrumented type.public String toString()
toString in class Enum<MethodCall.TargetHandler.ForConstructingInvocation>Copyright © 2014–2015. All rights reserved.