org.netbeans.modules.java.api.common/0 1.37

org.netbeans.modules.java.api.common.classpath
Class ClassPathProviderImpl

java.lang.Object
  extended by org.netbeans.modules.java.api.common.classpath.ClassPathProviderImpl
All Implemented Interfaces:
ClassPathProvider

public final class ClassPathProviderImpl
extends Object
implements ClassPathProvider

Defines the various class paths for a J2SE project.

Since:
org.netbeans.modules.java.api.common/1 1.5

Constructor Summary
ClassPathProviderImpl(AntProjectHelper helper, PropertyEvaluator evaluator, SourceRoots sourceRoots, SourceRoots testSourceRoots)
           
ClassPathProviderImpl(AntProjectHelper helper, PropertyEvaluator evaluator, SourceRoots sourceRoots, SourceRoots testSourceRoots, String buildClassesDir, String distJar, String buildTestClassesDir, String[] javacClasspath, String[] javacTestClasspath, String[] runClasspath, String[] runTestClasspath)
           
ClassPathProviderImpl(AntProjectHelper helper, PropertyEvaluator evaluator, SourceRoots sourceRoots, SourceRoots testSourceRoots, String buildClassesDir, String distJar, String buildTestClassesDir, String[] javacClasspath, String[] javacTestClasspath, String[] runClasspath, String[] runTestClasspath, String[] endorsedClasspath)
          Constructor allowing customization of endorsedClasspath property names.
ClassPathProviderImpl(AntProjectHelper helper, PropertyEvaluator evaluator, SourceRoots sourceRoots, SourceRoots testSourceRoots, String buildClassesDir, String distJar, String buildTestClassesDir, String[] javacClasspath, String[] processorPath, String[] javacTestClasspath, String[] runClasspath, String[] runTestClasspath, String[] endorsedClasspath)
          Constructor allowing customization of processorPath.
 
Method Summary
 ClassPath findClassPath(FileObject file, String type)
           
 ClassPath[] getProjectClassPaths(String type)
          Returns array of all classpaths of the given type in the project.
 ClassPath getProjectSourcesClassPath(String type)
          Returns the given type of the classpath for the project sources (i.e., excluding tests roots).
 String[] getPropertyName(SourceGroup sg, String type)
           
 String[] getPropertyName(SourceRoots roots, String type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassPathProviderImpl

public ClassPathProviderImpl(AntProjectHelper helper,
                             PropertyEvaluator evaluator,
                             SourceRoots sourceRoots,
                             SourceRoots testSourceRoots)

ClassPathProviderImpl

public ClassPathProviderImpl(AntProjectHelper helper,
                             PropertyEvaluator evaluator,
                             SourceRoots sourceRoots,
                             SourceRoots testSourceRoots,
                             String buildClassesDir,
                             String distJar,
                             String buildTestClassesDir,
                             String[] javacClasspath,
                             String[] javacTestClasspath,
                             String[] runClasspath,
                             String[] runTestClasspath)

ClassPathProviderImpl

public ClassPathProviderImpl(AntProjectHelper helper,
                             PropertyEvaluator evaluator,
                             SourceRoots sourceRoots,
                             SourceRoots testSourceRoots,
                             String buildClassesDir,
                             String distJar,
                             String buildTestClassesDir,
                             String[] javacClasspath,
                             String[] javacTestClasspath,
                             String[] runClasspath,
                             String[] runTestClasspath,
                             String[] endorsedClasspath)
Constructor allowing customization of endorsedClasspath property names.

Since:
org.netbeans.modules.java.api.common/0 1.11

ClassPathProviderImpl

public ClassPathProviderImpl(AntProjectHelper helper,
                             PropertyEvaluator evaluator,
                             SourceRoots sourceRoots,
                             SourceRoots testSourceRoots,
                             String buildClassesDir,
                             String distJar,
                             String buildTestClassesDir,
                             String[] javacClasspath,
                             String[] processorPath,
                             String[] javacTestClasspath,
                             String[] runClasspath,
                             String[] runTestClasspath,
                             String[] endorsedClasspath)
Constructor allowing customization of processorPath.

Since:
org.netbeans.modules.java.api.common/0 1.14
Method Detail

findClassPath

public ClassPath findClassPath(FileObject file,
                               String type)
Specified by:
findClassPath in interface ClassPathProvider

getProjectClassPaths

public ClassPath[] getProjectClassPaths(String type)
Returns array of all classpaths of the given type in the project. The result is used for example for GlobalPathRegistry registrations.


getProjectSourcesClassPath

public ClassPath getProjectSourcesClassPath(String type)
Returns the given type of the classpath for the project sources (i.e., excluding tests roots).


getPropertyName

public String[] getPropertyName(SourceRoots roots,
                                String type)

getPropertyName

public String[] getPropertyName(SourceGroup sg,
                                String type)

org.netbeans.modules.java.api.common/0 1.37

Built on May 22 2012.  |  Portions Copyright 1997-2012 Oracle. All rights reserved.