public static enum MemberSubstitution.Substitution.InvocationType extends Enum<MemberSubstitution.Substitution.InvocationType>
| Enum Constant and Description |
|---|
OTHER
Indicates that an invoked method is not a virtual method.
|
SUPER
Indicates that a method is called via a super method call.
|
VIRTUAL
Indicates that a method is called virtually.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
matches(boolean includeVirtualCalls,
boolean includeSuperCalls)
Determines if a method is matched by this invocation type.
|
protected static MemberSubstitution.Substitution.InvocationType |
of(int opcode,
MethodDescription methodDescription)
Creates an invocation type.
|
static MemberSubstitution.Substitution.InvocationType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MemberSubstitution.Substitution.InvocationType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MemberSubstitution.Substitution.InvocationType VIRTUAL
public static final MemberSubstitution.Substitution.InvocationType SUPER
public static final MemberSubstitution.Substitution.InvocationType OTHER
public static MemberSubstitution.Substitution.InvocationType[] values()
for (MemberSubstitution.Substitution.InvocationType c : MemberSubstitution.Substitution.InvocationType.values()) System.out.println(c);
public static MemberSubstitution.Substitution.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.Substitution.InvocationType of(int opcode, MethodDescription methodDescription)
opcode - The method call's opcode.methodDescription - The method being invoked.protected boolean matches(boolean includeVirtualCalls,
boolean includeSuperCalls)
includeVirtualCalls - true if virtual calls are included.includeSuperCalls - true if super method calls are included.true if this instance matches the given setup.Copyright © 2014–2017. All rights reserved.