public static enum SourceSpan.Kind extends Enum<SourceSpan.Kind>
| Enum Constant and Description |
|---|
PROTECTED
A region whose bytes must be emitted verbatim: comments, string
literals, quoted identifiers, hints,
--BEGIN_NO_FORMAT
blocks. |
RAW_FALLBACK
A byte range the tokenizer did not cover — pp2 records the gap
here, never silently drops it.
|
TOKEN
A solid lexer token: keyword, identifier, literal, operator,
punctuation.
|
TRIVIA
Whitespace (including newlines).
|
| Modifier and Type | Method and Description |
|---|---|
static SourceSpan.Kind |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SourceSpan.Kind[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SourceSpan.Kind TOKEN
public static final SourceSpan.Kind TRIVIA
public static final SourceSpan.Kind PROTECTED
--BEGIN_NO_FORMAT
blocks. Slice S9 expands this classification.public static final SourceSpan.Kind RAW_FALLBACK
RAW_FALLBACK span
yields a FormatDiagnostic on the result.public static SourceSpan.Kind[] values()
for (SourceSpan.Kind c : SourceSpan.Kind.values()) System.out.println(c);
public static SourceSpan.Kind 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