public class ParserConfiguration extends Object
Constructor | Description |
---|---|
ParserConfiguration() |
Modifier and Type | Method | 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.
|
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
Copyright © 2007–2019. All rights reserved.