public class ProjectRoot extends Object
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 and Description |
---|
ProjectRoot(Path root) |
ProjectRoot(Path root,
ParserConfiguration parserConfiguration) |
Modifier and Type | Method and Description |
---|---|
void |
addSourceRoot(Path path) |
Path |
getRoot() |
Optional<SourceRoot> |
getSourceRoot(Path sourceRoot) |
List<SourceRoot> |
getSourceRoots() |
String |
toString() |
public ProjectRoot(Path root)
public ProjectRoot(Path root, ParserConfiguration parserConfiguration)
public Optional<SourceRoot> getSourceRoot(Path sourceRoot)
public List<SourceRoot> getSourceRoots()
public void addSourceRoot(Path path)
public Path getRoot()
Copyright © 2007–2024. All rights reserved.