public static enum Rule.RuleType extends Enum<Rule.RuleType>
| Enum Constant and Description |
|---|
BNF |
FRAGMENT |
KEYWORD |
KEYWORD_LITERAL |
LETTER |
NORMAL |
| Modifier and Type | Method and Description |
|---|---|
boolean |
keep() |
static Rule.RuleType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Rule.RuleType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Rule.RuleType NORMAL
public static final Rule.RuleType KEYWORD
public static final Rule.RuleType KEYWORD_LITERAL
public static final Rule.RuleType LETTER
public static final Rule.RuleType BNF
public static final Rule.RuleType FRAGMENT
public static Rule.RuleType[] values()
for (Rule.RuleType c : Rule.RuleType.values()) System.out.println(c);
public static Rule.RuleType 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 keep()
Copyright © 2019. All rights reserved.