public static enum Config.Relevance extends Enum<Config.Relevance>
Relevance values form a semi-lattice with BOTH
as a bottom element for the includes(Config.Relevance)
relation.
Enum Constant and Description |
---|
BOTH
Relevant for both lexical and syntax analyzers
|
LEXER
Only relevant to generation of lexical analyzers
|
PARSER
Only relevant to generation of syntax analyzers
|
Modifier and Type | Method and Description |
---|---|
boolean |
includes(Config.Relevance r) |
static Config.Relevance |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Config.Relevance[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Config.Relevance LEXER
public static final Config.Relevance PARSER
public static final Config.Relevance BOTH
public static Config.Relevance[] values()
for (Config.Relevance c : Config.Relevance.values()) System.out.println(c);
public static Config.Relevance 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 boolean includes(Config.Relevance r)
r
- r
, i.e. whether all
options relevant in r
are also relevant
in this