ParserConfiguration

The configuration that is used by the parser. Note that this can be changed even when reusing the same JavaParser instance. It will pick up the changes.

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard

Properties

Link copied to clipboard
Link copied to clipboard
open var jmlKeys: List<List<String>>
Link copied to clipboard
Link copied to clipboard
open var tabSize: Int

Functions

Link copied to clipboard
Link copied to clipboard
Retrieve the SymbolResolver to be used while parsing, if any.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun isProcessJml(): Boolean
Link copied to clipboard
Link copied to clipboard
open fun setAttributeComments(attributeComments: Boolean): ParserConfiguration
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.
Link copied to clipboard
open fun setDetectOriginalLineSeparator(detectOriginalLineSeparator: Boolean): ParserConfiguration
open fun setDoNotAssignCommentsPrecedingEmptyLines(doNotAssignCommentsPrecedingEmptyLines: Boolean): ParserConfiguration
open fun setIgnoreAnnotationsWhenAttributingComments(ignoreAnnotationsWhenAttributingComments: Boolean): ParserConfiguration
Link copied to clipboard
Link copied to clipboard
open fun setLexicalPreservationEnabled(lexicalPreservationEnabled: Boolean): ParserConfiguration
Disabled by default.
Link copied to clipboard
open fun setPreprocessUnicodeEscapes(preprocessUnicodeEscapes: Boolean): ParserConfiguration
When set to true, unicode escape handling is done by preprocessing the whole input, meaning that all unicode escapes are turned into unicode characters before parsing.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Set the SymbolResolver to be injected while parsing.