Package com.github.javaparser.utils
Class ProjectRoot
- java.lang.Object
-
- com.github.javaparser.utils.ProjectRoot
-
public class ProjectRoot extends Object
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.
-
-
Constructor Summary
Constructors Constructor Description ProjectRoot(Path root)
ProjectRoot(Path root, ParserConfiguration parserConfiguration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addSourceRoot(Path path)
Path
getRoot()
Optional<SourceRoot>
getSourceRoot(Path sourceRoot)
List<SourceRoot>
getSourceRoots()
String
toString()
-
-
-
Constructor Detail
-
ProjectRoot
public ProjectRoot(Path root)
-
ProjectRoot
public ProjectRoot(Path root, ParserConfiguration parserConfiguration)
-
-
Method Detail
-
getSourceRoot
public Optional<SourceRoot> getSourceRoot(Path sourceRoot)
-
getSourceRoots
public List<SourceRoot> getSourceRoots()
-
addSourceRoot
public void addSourceRoot(Path path)
-
getRoot
public Path getRoot()
-
-