@PublicApi public class ParserOptions extends java.lang.Object
Parser behaves.| Modifier and Type | Class and Description |
|---|---|
static class |
ParserOptions.Builder |
| Modifier and Type | Method and Description |
|---|---|
static ParserOptions |
getDefaultParserOptions()
By default the Parser will not capture ignored characters.
|
boolean |
isCaptureIgnoredChars()
Significant memory savings can be made if we do NOT capture ignored characters,
especially in SDL parsing.
|
boolean |
isCaptureSourceLocation()
Memory savings can be made if we do NOT set
SourceLocations
on AST nodes, especially in SDL parsing. |
static ParserOptions.Builder |
newParserOptions() |
static void |
setDefaultParserOptions(ParserOptions options)
By default the Parser will not capture ignored characters.
|
public static ParserOptions getDefaultParserOptions()
IgnoredChar,
SourceLocationpublic static void setDefaultParserOptions(ParserOptions options)
options - - the new default JVM parser optionsIgnoredChar,
SourceLocationpublic boolean isCaptureIgnoredChars()
public boolean isCaptureSourceLocation()
SourceLocations
on AST nodes, especially in SDL parsing.SourceLocations are captured in AST nodesSourceLocationpublic static ParserOptions.Builder newParserOptions()