public enum ArgumentType extends java.lang.Enum<ArgumentType>
| Enum Constant and Description |
|---|
anonkeyrest |
anonopt |
anonreq |
anonrest |
block |
key |
keyreq |
keyrest |
opt |
req |
rest |
| Modifier and Type | Field and Description |
|---|---|
boolean |
anonymous |
java.lang.String |
name |
java.lang.String |
typeId |
| Modifier and Type | Method and Description |
|---|---|
ArgumentType |
anonymousForm() |
RubyArray |
toArrayForm(Ruby runtime,
RubySymbol name) |
static ArgumentType |
valueOf(char prefix) |
static ArgumentType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ArgumentType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ArgumentType key
public static final ArgumentType keyreq
public static final ArgumentType keyrest
public static final ArgumentType block
public static final ArgumentType opt
public static final ArgumentType rest
public static final ArgumentType req
public static final ArgumentType anonreq
public static final ArgumentType anonopt
public static final ArgumentType anonrest
public static final ArgumentType anonkeyrest
public final java.lang.String name
public final java.lang.String typeId
public final boolean anonymous
public static ArgumentType[] values()
for (ArgumentType c : ArgumentType.values()) System.out.println(c);
public static ArgumentType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static ArgumentType valueOf(char prefix)
public RubyArray toArrayForm(Ruby runtime, RubySymbol name)
public ArgumentType anonymousForm()
Copyright © 2001-2022 JRuby. All Rights Reserved.