Package net.bytebuddy.asm
Enum MemberSubstitution.Substitution.InvocationType
- java.lang.Object
-
- java.lang.Enum<MemberSubstitution.Substitution.InvocationType>
-
- net.bytebuddy.asm.MemberSubstitution.Substitution.InvocationType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<MemberSubstitution.Substitution.InvocationType>
- Enclosing interface:
- MemberSubstitution.Substitution
public static enum MemberSubstitution.Substitution.InvocationType extends java.lang.Enum<MemberSubstitution.Substitution.InvocationType>
Determines a method's invocation type.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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(java.lang.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.
-
-
-
Enum Constant Detail
-
VIRTUAL
public static final MemberSubstitution.Substitution.InvocationType VIRTUAL
Indicates that a method is called virtually.
-
SUPER
public static final MemberSubstitution.Substitution.InvocationType SUPER
Indicates that a method is called via a super method call.
-
OTHER
public static final MemberSubstitution.Substitution.InvocationType OTHER
Indicates that an invoked method is not a virtual method.
-
-
Method Detail
-
values
public static MemberSubstitution.Substitution.InvocationType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (MemberSubstitution.Substitution.InvocationType c : MemberSubstitution.Substitution.InvocationType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MemberSubstitution.Substitution.InvocationType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
of
protected static MemberSubstitution.Substitution.InvocationType of(int opcode, MethodDescription methodDescription)
Creates an invocation type.- Parameters:
opcode
- The method call's opcode.methodDescription
- The method being invoked.- Returns:
- The method's invocation type.
-
matches
protected boolean matches(boolean includeVirtualCalls, boolean includeSuperCalls)
Determines if a method is matched by this invocation type.- Parameters:
includeVirtualCalls
-true
if virtual calls are included.includeSuperCalls
-true
if super method calls are included.- Returns:
true
if this instance matches the given setup.
-
-