Package net.bytebuddy.asm
Enum Class MemberSubstitution.Replacement.InvocationType
java.lang.Object
java.lang.Enum<MemberSubstitution.Replacement.InvocationType>
net.bytebuddy.asm.MemberSubstitution.Replacement.InvocationType
- All Implemented Interfaces:
Serializable
,Comparable<MemberSubstitution.Replacement.InvocationType>
,Constable
- Enclosing interface:
MemberSubstitution.Replacement
public static enum MemberSubstitution.Replacement.InvocationType
extends Enum<MemberSubstitution.Replacement.InvocationType>
Describes a method invocation type.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected 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.Returns the enum constant of this class with the specified name.values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
VIRTUAL
Describes a virtual method invocation. -
SUPER
Describes a super method invocation. -
OTHER
Describes any method invocation that is not virtual or a super method invocation.
-
-
Constructor Details
-
InvocationType
private InvocationType()
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
of
protected static MemberSubstitution.Replacement.InvocationType of(int opcode, MethodDescription methodDescription) Resolves an invocation type.- Parameters:
opcode
- The opcode that is used for invoking the method.methodDescription
- The method that is being invoked.- Returns:
- The invocation type for the method given that opcode.
-
matches
protected boolean matches(boolean includeVirtualCalls, boolean includeSuperCalls) Checks if this invocation type matches the specified inputs.- Parameters:
includeVirtualCalls
-true
if a virtual method should be matched.includeSuperCalls
-true
if a super method call should be matched.- Returns:
true
if this invocation type matches the specified parameters.
-