public static enum PGrammars.Sort extends Enum<PGrammars.Sort>
Enum Constant and Description |
---|
ALL
Sort which describes formals which can stand for any expression
|
ARGS
Sort which describes formals which only stand for expressions that
expect arguments, i.e. applications of non-terminals which were
declared with arguments
|
ARGS_VALUED
Sort which describes formals which only stand for valued expressions
that expect arguments, i.e. applications of non-terminals which were
declared with arguments and do not simply return
void |
NO_ARGS
Sort which describes formals which only stand for expressions that
do not expect arguments, i.e. tokens or applications of non-terminals
which were declared without arguments
|
NO_ARGS_VALUED
Sort which describes formals which only stand for valued expressions that
expect arguments, i.e. applications of non-terminals which do not
simply return
void and were declared with arguments |
VALUED
Sort which describes formals which only stand for valued expressions,
i.e. valued tokens or applications of non-terminals which do not
simply return
void and expect no arguments |
Modifier and Type | Field and Description |
---|---|
PGrammars.Args |
requiresArgs
Whether this sort requires expressions that expect arguments or
expressions that expect no arguments, or whether everything is
allowed
|
boolean |
requiresValue
Whether this sort requires valued expressions
|
Modifier and Type | Method and Description |
---|---|
static PGrammars.Sort |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PGrammars.Sort[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PGrammars.Sort ALL
public static final PGrammars.Sort NO_ARGS
public static final PGrammars.Sort VALUED
void
and expect no argumentspublic static final PGrammars.Sort ARGS
public static final PGrammars.Sort NO_ARGS_VALUED
void
and were declared with argumentspublic static final PGrammars.Sort ARGS_VALUED
void
public final boolean requiresValue
public final PGrammars.Args requiresArgs
public static PGrammars.Sort[] values()
for (PGrammars.Sort c : PGrammars.Sort.values()) System.out.println(c);
public static PGrammars.Sort 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 null