public enum ArgumentType extends Enum<ArgumentType>
| Enum Constant and Description |
|---|
anonkeyrest |
anonopt |
anonreq |
anonrest |
block |
key |
keyreq |
keyrest |
opt |
req |
rest |
| Modifier and Type | Field and Description |
|---|---|
static String |
ANONOPT |
static String |
ANONREST |
boolean |
anonymous |
static String |
REQ |
String |
symbolicName |
| Modifier and Type | Method and Description |
|---|---|
ArgumentType |
anonymousForm() |
String |
renderPrefixForm(String name) |
RubyArray |
toArrayForm(Ruby runtime,
String name) |
static ArgumentType |
valueOf(char prefix) |
static ArgumentType |
valueOf(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 static final String ANONOPT
public static final String ANONREST
public static final String REQ
public final String symbolicName
public final boolean anonymous
public static ArgumentType[] values()
for (ArgumentType c : ArgumentType.values()) System.out.println(c);
public static ArgumentType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static ArgumentType valueOf(char prefix)
public ArgumentType anonymousForm()
Copyright © 2001-2016 JRuby. All Rights Reserved.