Enum ArgumentType

java.lang.Object
java.lang.Enum<ArgumentType>
org.jruby.runtime.ArgumentType
All Implemented Interfaces:
Serializable, Comparable<ArgumentType>, java.lang.constant.Constable

public enum ArgumentType extends Enum<ArgumentType>
The diffierent types of arguments identified in a method.
  • Enum Constant Details

  • Field Details

    • name

      public final String name
    • typeId

      public final String typeId
    • anonymous

      public final boolean anonymous
  • Constructor Details

    • ArgumentType

      private ArgumentType(String typeId, boolean anonymous)
  • Method Details

    • values

      public static ArgumentType[] 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 ArgumentType 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
    • valueOf

      public static ArgumentType valueOf(char prefix)
      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:
      prefix - 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
    • prefixFrom

      static char prefixFrom(ArgumentType type)
    • toArrayForm

      public RubyArray toArrayForm(Ruby runtime, RubySymbol name)
    • anonymousForm

      public ArgumentType anonymousForm()