public static enum MethodCall.TargetHandler.ForConstructingInvocation extends Enum<MethodCall.TargetHandler.ForConstructingInvocation> implements MethodCall.TargetHandler
MethodCall.TargetHandler.ForConstructingInvocation, MethodCall.TargetHandler.ForField, MethodCall.TargetHandler.ForMethodParameter, MethodCall.TargetHandler.ForSelfOrStaticInvocation, MethodCall.TargetHandler.ForValue
Enum Constant and Description |
---|
INSTANCE
The singleton instance.
|
Modifier and Type | Method and Description |
---|---|
InstrumentedType |
prepare(InstrumentedType instrumentedType)
Prepares a given instrumented type.
|
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.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 invokedMethod, MethodDescription instrumentedMethod, TypeDescription instrumentedType, Assigner assigner, Assigner.Typing typing)
MethodCall.TargetHandler
resolve
in interface MethodCall.TargetHandler
invokedMethod
- 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)
InstrumentedType.Prepareable
prepare
in interface InstrumentedType.Prepareable
instrumentedType
- The instrumented type in its current form.public String toString()
toString
in class Enum<MethodCall.TargetHandler.ForConstructingInvocation>
Copyright © 2014–2017. All rights reserved.