public static enum MemberSubstitution.Replacement.NoOp extends Enum<MemberSubstitution.Replacement.NoOp> implements MemberSubstitution.Replacement, MemberSubstitution.Replacement.Factory
MemberSubstitution.Replacement.Binding, MemberSubstitution.Replacement.Factory, MemberSubstitution.Replacement.ForElementMatchers, MemberSubstitution.Replacement.ForFirstBinding, MemberSubstitution.Replacement.InvocationType, MemberSubstitution.Replacement.NoOpMemberSubstitution.Replacement.Factory.Compound| Enum Constant and Description |
|---|
INSTANCE
The singleton instance.
|
| Modifier and Type | Method and Description |
|---|---|
MemberSubstitution.Replacement.Binding |
bind(TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
TypeDescription typeDescription,
FieldDescription fieldDescription,
boolean writeAccess)
Binds this replacement for a field that was discovered.
|
MemberSubstitution.Replacement.Binding |
bind(TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
TypeDescription typeDescription,
MethodDescription methodDescription,
MemberSubstitution.Replacement.InvocationType invocationType)
Binds this replacement for a field that was discovered.
|
MemberSubstitution.Replacement |
make(TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
TypePool typePool)
Creates a replacement for an instrumented method.
|
static MemberSubstitution.Replacement.NoOp |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MemberSubstitution.Replacement.NoOp[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MemberSubstitution.Replacement.NoOp INSTANCE
public static MemberSubstitution.Replacement.NoOp[] values()
for (MemberSubstitution.Replacement.NoOp c : MemberSubstitution.Replacement.NoOp.values()) System.out.println(c);
public static MemberSubstitution.Replacement.NoOp 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 MemberSubstitution.Replacement make(TypeDescription instrumentedType, MethodDescription instrumentedMethod, TypePool typePool)
make in interface MemberSubstitution.Replacement.FactoryinstrumentedType - The instrumented type.instrumentedMethod - The instrumented method.typePool - The type pool being used within the member substitution being applied.public MemberSubstitution.Replacement.Binding bind(TypeDescription instrumentedType, MethodDescription instrumentedMethod, TypeDescription typeDescription, FieldDescription fieldDescription, boolean writeAccess)
bind in interface MemberSubstitution.ReplacementinstrumentedType - The instrumented type.instrumentedMethod - The instrumented method.typeDescription - The type on which the field was read.fieldDescription - The field that was discovered.writeAccess - true if this field was written to.public MemberSubstitution.Replacement.Binding bind(TypeDescription instrumentedType, MethodDescription instrumentedMethod, TypeDescription typeDescription, MethodDescription methodDescription, MemberSubstitution.Replacement.InvocationType invocationType)
bind in interface MemberSubstitution.ReplacementinstrumentedType - The instrumented type.FieldDescriptioninstrumentedMethod - The instrumented method.typeDescription - The type on which the method was invoked.methodDescription - The method that was discovered.invocationType - The invocation type for this method.Copyright © 2014–2024. All rights reserved.