public enum ParserAnnotation extends Enum<ParserAnnotation>
Type.getDescriptor()
Enum Constant and Description |
---|
CACHED |
DONT_EXTEND |
DONT_LABEL |
DONT_SKIP_ACTIONS_IN_PREDICATES |
EXPLICIT_ACTIONS_ONLY |
SKIP_ACTIONS_IN_PREDICATES |
Modifier and Type | Method and Description |
---|---|
static void |
moveTo(Set<ParserAnnotation> from,
Set<ParserAnnotation> to) |
static boolean |
recordAnnotation(Set<ParserAnnotation> set,
String desc)
Record an enumeration value into a set if the descriptor is known
|
static ParserAnnotation |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ParserAnnotation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ParserAnnotation CACHED
public static final ParserAnnotation EXPLICIT_ACTIONS_ONLY
public static final ParserAnnotation DONT_LABEL
public static final ParserAnnotation DONT_EXTEND
public static final ParserAnnotation DONT_SKIP_ACTIONS_IN_PREDICATES
public static final ParserAnnotation SKIP_ACTIONS_IN_PREDICATES
public static ParserAnnotation[] values()
for (ParserAnnotation c : ParserAnnotation.values()) System.out.println(c);
public static ParserAnnotation 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 boolean recordAnnotation(Set<ParserAnnotation> set, String desc)
set
- the set to record intodesc
- the descriptorpublic static void moveTo(Set<ParserAnnotation> from, Set<ParserAnnotation> to)
from
- set to move flags fromto
- set to move flags toRuleMethod.moveFlagsTo(RuleMethod)