Enum 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>, java.lang.constant.Constable
Enclosing interface:
MemberSubstitution.Replacement

public static enum MemberSubstitution.Replacement.InvocationType extends Enum<MemberSubstitution.Replacement.InvocationType>
Describes a method invocation type.
  • Enum Constant Details

  • Constructor Details

    • InvocationType

      private InvocationType()
  • Method Details

    • values

      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      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:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - 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.