public static enum Parser.CancelReason extends Enum<Parser.CancelReason>
Parser.CancelReason
is passed to Parser.cancel(org.netbeans.modules.parsing.spi.Parser.CancelReason, org.netbeans.modules.parsing.spi.SourceModificationEvent)
as a hint. The parser may use this information to optimize the canceling.Enum.EnumDesc<E extends Enum<E>>
Enum Constant and Description |
---|
PARSER_RESULT_TASK
The cancel is called because a higher priority task was added.
|
SOURCE_MODIFICATION_EVENT
The cancel is called due to source modification.
|
USER_TASK
The cancel is called because
ParserManager 's parse method
was called. |
Modifier and Type | Method and Description |
---|---|
static Parser.CancelReason |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Parser.CancelReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Parser.CancelReason SOURCE_MODIFICATION_EVENT
public static final Parser.CancelReason USER_TASK
ParserManager
's parse method
was called.
The source used by the parser is still valid, the parser can use
these data during the next request.public static final Parser.CancelReason PARSER_RESULT_TASK
public static Parser.CancelReason[] values()
public static Parser.CancelReason 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