Class ProjectRoot


  • public class ProjectRoot
    extends java.lang.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.

    • Field Detail

      • root

        private final java.nio.file.Path root
      • cache

        private final java.util.Map<java.nio.file.Path,​SourceRoot> cache
    • Constructor Detail

      • ProjectRoot

        public ProjectRoot​(java.nio.file.Path root)
      • ProjectRoot

        public ProjectRoot​(java.nio.file.Path root,
                           ParserConfiguration parserConfiguration)
    • Method Detail

      • getSourceRoot

        public java.util.Optional<SourceRoot> getSourceRoot​(java.nio.file.Path sourceRoot)
      • getSourceRoots

        public java.util.List<SourceRoot> getSourceRoots()
      • addSourceRoot

        public void addSourceRoot​(java.nio.file.Path path)
      • getRoot

        public java.nio.file.Path getRoot()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object