Uses of Class
com.github.javaparser.ParserConfiguration
Packages that use ParserConfiguration
Package
Description
-
Uses of ParserConfiguration in com.github.javaparser
Fields in com.github.javaparser declared as ParserConfigurationModifier and TypeFieldDescriptionprivate final ParserConfiguration
CommentsInserter.configuration
private final ParserConfiguration
JavaParser.configuration
Fields in com.github.javaparser with type parameters of type ParserConfigurationModifier and TypeFieldDescriptionprivate static final ThreadLocal
<ParserConfiguration> StaticJavaParser.localConfiguration
Methods in com.github.javaparser that return ParserConfigurationModifier and TypeMethodDescriptionstatic ParserConfiguration
StaticJavaParser.getConfiguration()
Deprecated.JavaParser.getParserConfiguration()
JavaParserAdapter.getParserConfiguration()
static ParserConfiguration
StaticJavaParser.getParserConfiguration()
Get the configuration for the parse...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.setCharacterEncoding
(Charset characterEncoding) The character encoding used for reading input from files and streams.ParserConfiguration.setDetectOriginalLineSeparator
(boolean detectOriginalLineSeparator) ParserConfiguration.setDoNotAssignCommentsPrecedingEmptyLines
(boolean doNotAssignCommentsPrecedingEmptyLines) ParserConfiguration.setIgnoreAnnotationsWhenAttributingComments
(boolean ignoreAnnotationsWhenAttributingComments) ParserConfiguration.setLanguageLevel
(ParserConfiguration.LanguageLevel languageLevel) ParserConfiguration.setLexicalPreservationEnabled
(boolean lexicalPreservationEnabled) Disabled by default.ParserConfiguration.setPreprocessUnicodeEscapes
(boolean preprocessUnicodeEscapes) 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.ParserConfiguration.setStoreTokens
(boolean storeTokens) ParserConfiguration.setSymbolResolver
(SymbolResolver symbolResolver) Set the SymbolResolver to be injected while parsing.ParserConfiguration.setTabSize
(int tabSize) When a TAB character is encountered during parsing, the column position will be increased by this value.Methods in com.github.javaparser with parameters of type ParserConfigurationModifier and TypeMethodDescriptionvoid
ParserConfiguration.LineEndingProcessor.postProcess
(ParseResult<? extends Node> result, ParserConfiguration configuration) void
ParserConfiguration.UnicodeEscapeProcessor.postProcess
(ParseResult<? extends Node> result, ParserConfiguration configuration) void
Processor.postProcess
(ParseResult<? extends Node> result, ParserConfiguration configuration) Makes the parser do a post-parsing step before the result is returned to the user.static void
StaticJavaParser.setConfiguration
(ParserConfiguration configuration) Set the configuration for the static parse...Constructors in com.github.javaparser with parameters of type ParserConfigurationModifierConstructorDescription(package private)
CommentsInserter
(ParserConfiguration configuration) JavaParser
(ParserConfiguration configuration) Instantiate the parser. -
Uses of ParserConfiguration in com.github.javaparser.ast.validator.postprocessors
Methods in com.github.javaparser.ast.validator.postprocessors with parameters of type ParserConfigurationModifier and TypeMethodDescriptionvoid
PostProcessors.postProcess
(ParseResult<? extends Node> result, ParserConfiguration configuration) -
Uses of ParserConfiguration in com.github.javaparser.symbolsolver.resolution.typesolvers
Constructors in com.github.javaparser.symbolsolver.resolution.typesolvers with parameters of type ParserConfigurationModifierConstructorDescriptionJavaParserTypeSolver
(File srcDir, ParserConfiguration parserConfiguration) JavaParserTypeSolver
(String srcDir, ParserConfiguration parserConfiguration) JavaParserTypeSolver
(Path srcDir, ParserConfiguration parserConfiguration) JavaParserTypeSolver
(Path srcDir, ParserConfiguration parserConfiguration, long cacheSizeLimit) -
Uses of ParserConfiguration in com.github.javaparser.symbolsolver.utils
Fields in com.github.javaparser.symbolsolver.utils declared as ParserConfigurationModifier and TypeFieldDescriptionprivate final ParserConfiguration
SymbolSolverCollectionStrategy.parserConfiguration
Methods in com.github.javaparser.symbolsolver.utils that return ParserConfigurationConstructors in com.github.javaparser.symbolsolver.utils with parameters of type ParserConfigurationModifierConstructorDescriptionSymbolSolverCollectionStrategy
(ParserConfiguration parserConfiguration) -
Uses of ParserConfiguration in com.github.javaparser.utils
Fields in com.github.javaparser.utils declared as ParserConfigurationModifier and TypeFieldDescriptionprivate final ParserConfiguration
ParserCollectionStrategy.parserConfiguration
private final ParserConfiguration
ProjectRoot.parserConfiguration
private ParserConfiguration
SourceRoot.parserConfiguration
private ParserConfiguration
SourceZip.parserConfiguration
Methods in com.github.javaparser.utils that return ParserConfigurationModifier and TypeMethodDescriptionCollectionStrategy.getParserConfiguration()
ParserCollectionStrategy.getParserConfiguration()
SourceRoot.getParserConfiguration()
SourceZip.getParserConfiguration()
Methods in com.github.javaparser.utils with parameters of type ParserConfigurationModifier and TypeMethodDescriptionprivate FileVisitResult
SourceRoot.callback
(Path absolutePath, ParserConfiguration configuration, SourceRoot.Callback callback) SourceRoot.parse
(String startPackage, ParserConfiguration configuration, SourceRoot.Callback callback) Tries to parse all .java files in a package recursively and passes them one by one to the callback.SourceRoot.parse
(String startPackage, String filename, ParserConfiguration configuration, SourceRoot.Callback callback) Locates the .java file with the provided package and file name, parses it and passes it to the callback.SourceRoot.parseParallelized
(String startPackage, ParserConfiguration configuration, SourceRoot.Callback callback) Tries to parse all .java files in a package recursively using multiple threads, and passes them one by one to the callback.SourceRoot.setParserConfiguration
(ParserConfiguration parserConfiguration) Set the parser configuration that is used for parsing when no configuration is passed to a method.SourceZip.setParserConfiguration
(ParserConfiguration parserConfiguration) SourceRoot.tryToParse
(String startPackage, String filename, ParserConfiguration configuration) Tries to parse a .java files under the source root and returns the ParseResult.Constructors in com.github.javaparser.utils with parameters of type ParserConfigurationModifierConstructorDescriptionParserCollectionStrategy
(ParserConfiguration parserConfiguration) ProjectRoot
(Path root, ParserConfiguration parserConfiguration) SourceRoot
(Path root, ParserConfiguration parserConfiguration) SourceZip
(Path zipPath, ParserConfiguration configuration) Create a new ZIP parser.
StaticJavaParser.getParserConfiguration()
instead