public class ParserConfiguration extends Object
Constructor and Description |
---|
ParserConfiguration() |
Modifier and Type | Method and Description |
---|---|
int |
getTabSize() |
Validator |
getValidator() |
boolean |
isAttributeComments() |
boolean |
isDoNotAssignCommentsPrecedingEmptyLines() |
boolean |
isDoNotConsiderAnnotationsAsNodeStartForCodeAttribution() |
boolean |
isLexicalPreservationEnabled() |
boolean |
isStoreTokens() |
ParserConfiguration |
setAttributeComments(boolean attributeComments)
Whether to run CommentsInserter, which will put the comments that were found in the source code into the comment
and javadoc fields of the nodes it thinks they refer to.
|
ParserConfiguration |
setDoNotAssignCommentsPrecedingEmptyLines(boolean doNotAssignCommentsPrecedingEmptyLines) |
ParserConfiguration |
setDoNotConsiderAnnotationsAsNodeStartForCodeAttribution(boolean doNotConsiderAnnotationsAsNodeStartForCodeAttribution) |
ParserConfiguration |
setLexicalPreservationEnabled(boolean lexicalPreservationEnabled)
Disabled by default.
|
ParserConfiguration |
setStoreTokens(boolean storeTokens) |
ParserConfiguration |
setTabSize(int tabSize)
When a TAB character is encountered during parsing, the column position will be increased by this value.
|
ParserConfiguration |
setValidator(Validator validator)
The validator to run directly after parsing.
|
public boolean isAttributeComments()
public ParserConfiguration setAttributeComments(boolean attributeComments)
public boolean isDoNotAssignCommentsPrecedingEmptyLines()
public ParserConfiguration setDoNotAssignCommentsPrecedingEmptyLines(boolean doNotAssignCommentsPrecedingEmptyLines)
public boolean isDoNotConsiderAnnotationsAsNodeStartForCodeAttribution()
public ParserConfiguration setDoNotConsiderAnnotationsAsNodeStartForCodeAttribution(boolean doNotConsiderAnnotationsAsNodeStartForCodeAttribution)
public ParserConfiguration setStoreTokens(boolean storeTokens)
public boolean isStoreTokens()
public int getTabSize()
public ParserConfiguration setTabSize(int tabSize)
public Validator getValidator()
public ParserConfiguration setValidator(Validator validator)
Java8Validator
public ParserConfiguration setLexicalPreservationEnabled(boolean lexicalPreservationEnabled)
public boolean isLexicalPreservationEnabled()
Copyright © 2007–2017. All rights reserved.