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() |
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 |
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 int getTabSize()
public ParserConfiguration setTabSize(int tabSize)
public Validator getValidator()
public ParserConfiguration setValidator(Validator validator)
BaseJavaValidator
Copyright © 2007–2017. All rights reserved.