public static enum Parser.CancelReason extends Enum<Parser.CancelReason>
Parser.CancelReasonis 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 Constant and Description|
The cancel is called because a higher priority task was added.
The cancel is called due to source modification.
The cancel is called because
|Modifier and Type||Method and Description|
Returns the enum constant of this type with the specified name.
Returns an array containing the constants of this enum type, in the order they are declared.
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
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()
for (Parser.CancelReason c : Parser.CancelReason.values()) System.out.println(c);
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 name
NullPointerException- if the argument is null
Built on January 23 2023. | Copyright © 2017-2023 Apache Software Foundation. All Rights Reserved.