Interface AWorkspaceRoot

    • Method Detail

      • getProjects

        java.util.Set<AProject> getProjects()
        Returns all projects in this workspace.
      • getProject

        AProject getProject​(java.lang.String name)
        Returns the project with the given name in this workspace. It may not exist.
        Parameters:
        name - a project's name
      • getFileForLocation

        @CheckForNull
        AFile getFileForLocation​(java.nio.file.Path location)
        Returns the file with the given name in a project inside this workspace.
        Parameters:
        location - a file location; should reference a resource in one of the projects of this workspace
        Returns:
        the resource corresponding to the file, or null if no such file exists in this workspace