Uses of Class
com.github.javaparser.ParserConfiguration
-
Packages that use ParserConfiguration Package Description com.github.javaparser com.github.javaparser.ast.validator.postprocessors com.github.javaparser.utils -
-
Uses of ParserConfiguration in com.github.javaparser
Methods in com.github.javaparser that return ParserConfiguration Modifier and Type Method Description static ParserConfigurationStaticJavaParser. getConfiguration()Deprecated.useStaticJavaParser.getParserConfiguration()insteadParserConfigurationJavaParser. getParserConfiguration()ParserConfigurationJavaParserAdapter. getParserConfiguration()static ParserConfigurationStaticJavaParser. getParserConfiguration()Get the configuration for the parse... methods.ParserConfigurationParserConfiguration. 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.ParserConfigurationParserConfiguration. setCharacterEncoding(Charset characterEncoding)The character encoding used for reading input from files and streams.ParserConfigurationParserConfiguration. setDetectOriginalLineSeparator(boolean detectOriginalLineSeparator)ParserConfigurationParserConfiguration. setDoNotAssignCommentsPrecedingEmptyLines(boolean doNotAssignCommentsPrecedingEmptyLines)ParserConfigurationParserConfiguration. setIgnoreAnnotationsWhenAttributingComments(boolean ignoreAnnotationsWhenAttributingComments)ParserConfigurationParserConfiguration. setLanguageLevel(ParserConfiguration.LanguageLevel languageLevel)ParserConfigurationParserConfiguration. setLexicalPreservationEnabled(boolean lexicalPreservationEnabled)Disabled by default.ParserConfigurationParserConfiguration. 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.ParserConfigurationParserConfiguration. setStoreTokens(boolean storeTokens)ParserConfigurationParserConfiguration. setSymbolResolver(SymbolResolver symbolResolver)Set the SymbolResolver to be injected while parsing.ParserConfigurationParserConfiguration. 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 ParserConfiguration Modifier and Type Method Description voidProcessor. postProcess(ParseResult<? extends Node> result, ParserConfiguration configuration)Makes the parser do a post-parsing step before the result is returned to the user.static voidStaticJavaParser. setConfiguration(ParserConfiguration configuration)Set the configuration for the static parse... methods.Constructors in com.github.javaparser with parameters of type ParserConfiguration Constructor Description 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 ParserConfiguration Modifier and Type Method Description voidPostProcessors. postProcess(ParseResult<? extends Node> result, ParserConfiguration configuration) -
Uses of ParserConfiguration in com.github.javaparser.utils
Methods in com.github.javaparser.utils that return ParserConfiguration Modifier and Type Method Description ParserConfigurationCollectionStrategy. getParserConfiguration()ParserConfigurationParserCollectionStrategy. getParserConfiguration()ParserConfigurationSourceRoot. getParserConfiguration()ParserConfigurationSourceZip. getParserConfiguration()Methods in com.github.javaparser.utils with parameters of type ParserConfiguration Modifier and Type Method Description SourceRootSourceRoot. 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.SourceRootSourceRoot. 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.SourceRootSourceRoot. 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.SourceRootSourceRoot. setParserConfiguration(ParserConfiguration parserConfiguration)Set the parser configuration that is used for parsing when no configuration is passed to a method.SourceZipSourceZip. setParserConfiguration(ParserConfiguration parserConfiguration)ParseResult<CompilationUnit>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 ParserConfiguration Constructor Description ParserCollectionStrategy(ParserConfiguration parserConfiguration)ProjectRoot(Path root, ParserConfiguration parserConfiguration)SourceRoot(Path root, ParserConfiguration parserConfiguration)SourceZip(Path zipPath, ParserConfiguration configuration)Create a new ZIP parser.
-