Class ProjectRoot
java.lang.Object
com.github.javaparser.utils.ProjectRoot
The structure of a Java project directory.
It was originally created specifically to quickly configure the symbol solver.
You can use it as a general container for project information.
A project has a root directory, and it has zero or more directories that contain source code.
To create a ProjectRoot use a CollectionStrategy, or instantiate ProjectRoot yourself.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map<Path, SourceRoot> private final ParserConfigurationprivate final Path -
Constructor Summary
ConstructorsConstructorDescriptionProjectRoot(Path root) ProjectRoot(Path root, ParserConfiguration parserConfiguration) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSourceRoot(Path path) getRoot()getSourceRoot(Path sourceRoot) toString()
-
Field Details
-
root
-
cache
-
parserConfiguration
-
-
Constructor Details
-
ProjectRoot
-
ProjectRoot
-
-
Method Details
-
getSourceRoot
-
getSourceRoots
-
addSourceRoot
-
getRoot
-
toString
-