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 |
|---|---|
static java.lang.String |
ANONOPT |
static java.lang.String |
ANONREST |
boolean |
anonymous |
static java.lang.String |
REQ |
java.lang.String |
symbolicName |
| Modifier and Type | Method and Description |
|---|---|
ArgumentType |
anonymousForm() |
java.lang.String |
renderPrefixForm(java.lang.String name) |
RubyArray |
toArrayForm(Ruby runtime,
java.lang.String 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 static final java.lang.String ANONOPT
public static final java.lang.String ANONREST
public static final java.lang.String REQ
public final java.lang.String symbolicName
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 java.lang.String renderPrefixForm(java.lang.String name)
public ArgumentType anonymousForm()
Copyright © 2001-2018 JRuby. All Rights Reserved.