Package | Description |
---|---|
com.github.javaparser.utils |
Modifier and Type | Method and Description |
---|---|
SourceRoot |
SourceRoot.add(CompilationUnit compilationUnit)
Add a newly created Java file to the cache of this source root.
|
SourceRoot |
SourceRoot.add(String pkg,
String filename,
CompilationUnit compilationUnit)
Add a newly created Java file to the cache of this source root.
|
SourceRoot |
SourceRoot.parse(String startPackage,
JavaParser javaParser,
SourceRoot.Callback callback)
Tries to parse all .java files in a package recursively and passes them one by one to the callback.
|
SourceRoot |
SourceRoot.saveAll()
Save all previously parsed files back to where they were found.
|
SourceRoot |
SourceRoot.saveAll(Path root)
Save all previously parsed files back to a new path.
|
SourceRoot |
SourceRoot.setJavaParser(JavaParser javaParser)
Set the parser that is used for parsing by default.
|
SourceRoot |
SourceRoot.setPrinter(Function<CompilationUnit,String> printer)
Set the printing function that transforms compilation units into a string to save.
|
Copyright © 2007–2017. All rights reserved.