public static enum MethodCall.TargetHandler.ForSelfOrStaticInvocation extends Enum<MethodCall.TargetHandler.ForSelfOrStaticInvocation> implements MethodCall.TargetHandler
MethodCall.TargetHandler.ForConstructingInvocation, MethodCall.TargetHandler.ForInstanceField, MethodCall.TargetHandler.ForMethodParameter, MethodCall.TargetHandler.ForSelfOrStaticInvocation, MethodCall.TargetHandler.ForStaticField| Enum Constant and Description | 
|---|
| INSTANCEThe 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 invokedMethod,
       MethodDescription instrumentedMethod,
       TypeDescription instrumentedType,
       Assigner assigner,
       Assigner.Typing typing)Creates a stack manipulation that represents the method's invocation. | 
| String | toString() | 
| static MethodCall.TargetHandler.ForSelfOrStaticInvocation | valueOf(String name)Returns the enum constant of this type with the specified name. | 
| static MethodCall.TargetHandler.ForSelfOrStaticInvocation[] | values()Returns an array containing the constants of this enum type, in
the order they are declared. | 
public static final MethodCall.TargetHandler.ForSelfOrStaticInvocation INSTANCE
public static MethodCall.TargetHandler.ForSelfOrStaticInvocation[] values()
for (MethodCall.TargetHandler.ForSelfOrStaticInvocation c : MethodCall.TargetHandler.ForSelfOrStaticInvocation.values()) System.out.println(c);
public static MethodCall.TargetHandler.ForSelfOrStaticInvocation 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 invokedMethod, MethodDescription instrumentedMethod, TypeDescription instrumentedType, Assigner assigner, Assigner.Typing typing)
MethodCall.TargetHandlerresolve in interface MethodCall.TargetHandlerinvokedMethod - The method to be invoked.instrumentedMethod - The instrumented method.instrumentedType - The instrumented type.  @return A stack manipulation that invokes the method.assigner - The assigner to use.typing - The typing to apply.public InstrumentedType prepare(InstrumentedType instrumentedType)
MethodCall.TargetHandlerprepare in interface MethodCall.TargetHandlerinstrumentedType - The instrumented type.public String toString()
toString in class Enum<MethodCall.TargetHandler.ForSelfOrStaticInvocation>Copyright © 2014–2016. All rights reserved.