Enum MethodInvocation.HandleType

java.lang.Object
java.lang.Enum<MethodInvocation.HandleType>
net.bytebuddy.implementation.bytecode.member.MethodInvocation.HandleType
All Implemented Interfaces:
Serializable, Comparable<MethodInvocation.HandleType>, java.lang.constant.Constable
Enclosing class:
MethodInvocation

public static enum MethodInvocation.HandleType extends Enum<MethodInvocation.HandleType>
The type of method handle invocation.
  • Enum Constant Details

  • Field Details

    • methodName

      private final String methodName
      The name of the invoked method.
  • Constructor Details

    • HandleType

      private HandleType(String methodName)
      Creates a new handle type.
      Parameters:
      methodName - The name of the invoked method.
  • Method Details

    • values

      public static MethodInvocation.HandleType[] 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

      public static MethodInvocation.HandleType valueOf(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:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • getMethodName

      protected String getMethodName()
      Returns the name of the represented method.
      Returns:
      The name of the invoked method.