public static enum ParserStage.AcceptResult extends Enum<ParserStage.AcceptResult>
Enum Constant and Description |
---|
CANCEL
Cancel the parsing process due to a failure to parse
based on the current rules for this stage.
|
COMPLETE_AFTER_CONSUMING
Complete the parsing stage and consider the current
character as already consumed.
|
COMPLETE_WITHOUT_CONSUMING
Complete the parsing stage and reset the position of the
buffer so that the next stage can consume the current
character.
|
CONTINUE
Continue the parsing process.
|
Modifier and Type | Method and Description |
---|---|
static ParserStage.AcceptResult |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ParserStage.AcceptResult[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ParserStage.AcceptResult CONTINUE
public static final ParserStage.AcceptResult COMPLETE_AFTER_CONSUMING
public static final ParserStage.AcceptResult COMPLETE_WITHOUT_CONSUMING
public static final ParserStage.AcceptResult CANCEL
public static ParserStage.AcceptResult[] values()
for (ParserStage.AcceptResult c : ParserStage.AcceptResult.values()) System.out.println(c);
public static ParserStage.AcceptResult 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 nullCopyright © 2018. All rights reserved.