Enum Class RNCScannerState
java.lang.Object
java.lang.Enum<RNCScannerState>
org.eclipse.lemminx.extensions.relaxng.grammar.rnc.parser.RNCScannerState
- All Implemented Interfaces:
Serializable,Comparable<RNCScannerState>,Constable
Enumerates the internal states of the
RNCScanner state machine.
Currently the scanner uses a single state (WithinContent) because
RNC has no multi-line constructs that require state tracking across tokens
(unlike XML, which has separate states for tags, attributes, CDATA, etc.).
The enum exists for consistency with the XML scanner pattern and to support
future extensions (e.g., multi-line string handling or annotation blocks).
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe default scanning state — processing RNC content (declarations, patterns, operators). -
Method Summary
Modifier and TypeMethodDescriptionstatic RNCScannerStateReturns the enum constant of this class with the specified name.static RNCScannerState[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
WithinContent
The default scanning state — processing RNC content (declarations, patterns, operators).
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-