@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
SourceLocation s
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
,
SourceLocation
public static void setDefaultParserOptions(ParserOptions options)
options
- - the new default JVM parser optionsIgnoredChar
,
SourceLocation
public boolean isCaptureIgnoredChars()
public boolean isCaptureSourceLocation()
SourceLocation
s
on AST nodes, especially in SDL parsing.SourceLocation
s are captured in AST nodesSourceLocation
public static ParserOptions.Builder newParserOptions()