public static enum MemberSubstitution.Replacement.InvocationType extends Enum<MemberSubstitution.Replacement.InvocationType>
| Enum Constant and Description |
|---|
OTHER
Describes any method invocation that is not virtual or a super method invocation.
|
SUPER
Describes a super method invocation.
|
VIRTUAL
Describes a virtual method invocation.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
matches(boolean includeVirtualCalls,
boolean includeSuperCalls)
Checks if this invocation type matches the specified inputs.
|
protected static MemberSubstitution.Replacement.InvocationType |
of(int opcode,
MethodDescription methodDescription)
Resolves an invocation type.
|
static MemberSubstitution.Replacement.InvocationType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MemberSubstitution.Replacement.InvocationType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MemberSubstitution.Replacement.InvocationType VIRTUAL
public static final MemberSubstitution.Replacement.InvocationType SUPER
public static final MemberSubstitution.Replacement.InvocationType OTHER
public static MemberSubstitution.Replacement.InvocationType[] values()
for (MemberSubstitution.Replacement.InvocationType c : MemberSubstitution.Replacement.InvocationType.values()) System.out.println(c);
public static MemberSubstitution.Replacement.InvocationType 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 nullprotected static MemberSubstitution.Replacement.InvocationType of(int opcode, MethodDescription methodDescription)
opcode - The opcode that is used for invoking the method.methodDescription - The method that is being invoked.protected boolean matches(boolean includeVirtualCalls,
boolean includeSuperCalls)
includeVirtualCalls - true if a virtual method should be matched.includeSuperCalls - true if a super method call should be matched.true if this invocation type matches the specified parameters.Copyright © 2014–2023. All rights reserved.