org.schmant.project.java
Interface JavaProject

All Superinterfaces:
Project
All Known Subinterfaces:
IntelliJJavaProject
All Known Implementing Classes:
AbstractJavaProject, EclipseJavaProjectImpl, IntelliJJavaProjectImpl

public interface JavaProject
extends Project

This interface represents a Java Project. A Java project has one or several source code directories and a build classpath. It may have dependencies to other Java projects.

Since:
0.5
Author:
Karl Gustafsson

Method Summary
 List<JavaProjectClasspathEntry> getBuildClasspath()
          Get the project's build classpath.
 Collection<JavaProject> getProjectBuildDependencies()
          Get the collection of projects that this projects has build dependencies to.
 Set<DirectoryView> getSourceDirectories()
          Get the project's source code directories.
 
Methods inherited from interface org.schmant.project.Project
getDirectory, getName, getTypes, isOfType
 

Method Detail

getSourceDirectories

Set<DirectoryView> getSourceDirectories()
Get the project's source code directories.

Returns:
The project's source code directories.

getBuildClasspath

List<JavaProjectClasspathEntry> getBuildClasspath()
Get the project's build classpath. This includes library classpath entries and entries representing other Java projects in the same ProjectRepository.

The order of the returned entries is significant.

Returns:
The build classpath entries.

getProjectBuildDependencies

Collection<JavaProject> getProjectBuildDependencies()
Get the collection of projects that this projects has build dependencies to. This is not the complete build classpath, just the project dependencies.

Returns:
A collection of Java projects.
See Also:
getBuildClasspath()