public class ParserConfiguration
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private boolean |
attributeComments |
private boolean |
doNotAssignCommentsPrecedingEmptyLines |
private boolean |
doNotConsiderAnnotationsAsNodeStartForCodeAttribution |
private boolean |
storeTokens |
private int |
tabSize |
private Validator |
validator |
Constructor and Description |
---|
ParserConfiguration() |
Modifier and Type | Method and Description |
---|---|
int |
getTabSize() |
Validator |
getValidator() |
boolean |
isAttributeComments() |
boolean |
isDoNotAssignCommentsPrecedingEmptyLines() |
boolean |
isDoNotConsiderAnnotationsAsNodeStartForCodeAttribution() |
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 |
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.
|
private boolean storeTokens
private boolean attributeComments
private boolean doNotAssignCommentsPrecedingEmptyLines
private boolean doNotConsiderAnnotationsAsNodeStartForCodeAttribution
private int tabSize
private Validator validator
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)
Java1_0Validator