Uses of Class
com.github.javaparser.utils.SourceRoot
Packages that use SourceRoot
-
Uses of SourceRoot in com.github.javaparser.utils
Methods in com.github.javaparser.utils that return SourceRootModifier and TypeMethodDescriptionSourceRoot.add(CompilationUnit compilationUnit)
Add a newly created Java file to the cache of this source root.SourceRoot.add(String startPackage, String filename, CompilationUnit compilationUnit)
Add a newly created Java file to the cache of this source root.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, SourceRoot.Callback 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.parse(String startPackage, String filename, SourceRoot.Callback callback)
Parses the provided .java file and passes it to the callback.SourceRoot.parseParallelized(SourceRoot.Callback callback)
Tries to parse all .java files recursively using multiple threads, and passes them one by one 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.parseParallelized(String startPackage, 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.saveAll()
Save all previously parsed files back to where they were found.Save all previously parsed files back to where they were found, with the given encoding.Save all previously parsed files back to a new path.Save all previously parsed files back to a new path.SourceRoot.setParserConfiguration(ParserConfiguration parserConfiguration)
Set the parser configuration that is used for parsing when no configuration is passed to a method.SourceRoot.setPrinter(Function<CompilationUnit,String> printer)
Set the printing function that transforms compilation units into a string to save.Methods in com.github.javaparser.utils that return types with arguments of type SourceRootModifier and TypeMethodDescriptionProjectRoot.getSourceRoot(Path sourceRoot)
ProjectRoot.getSourceRoots()