public enum IncludeSourceSpans extends Enum<IncludeSourceSpans>
SourceSpan or not while parsing,
see Parser.Builder.includeSourceSpans(IncludeSourceSpans).| Enum Constant and Description |
|---|
BLOCKS
Include source spans on
Block nodes. |
BLOCKS_AND_INLINES
Include source spans on block nodes and inline nodes.
|
NONE
Do not include source spans.
|
| Modifier and Type | Method and Description |
|---|---|
static IncludeSourceSpans |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static IncludeSourceSpans[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final IncludeSourceSpans NONE
public static final IncludeSourceSpans BLOCKS
Block nodes.public static final IncludeSourceSpans BLOCKS_AND_INLINES
public static IncludeSourceSpans[] values()
for (IncludeSourceSpans c : IncludeSourceSpans.values()) System.out.println(c);
public static IncludeSourceSpans 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 © 2021. All rights reserved.