|
org.netbeans.api.java/1 1.10.22 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.netbeans.spi.java.classpath.support.ClassPathSupport
public class ClassPathSupport
Convenience factory for creating classpaths of common sorts.
Method Summary | |
---|---|
static ClassPath |
createClassPath(FileObject[] roots)
Create ClassPath for the given array of class path roots |
static ClassPath |
createClassPath(List entries)
Create ClassPath for the given list of PathResourceImplementation entries. |
static ClassPath |
createClassPath(URL[] roots)
Create ClassPath for the given array of class path roots |
static ClassPathImplementation |
createClassPathImplementation(List entries)
Create ClassPathImplementation for the given list of PathResourceImplementation entries. |
static ClassPath |
createProxyClassPath(ClassPath[] delegates)
Creates read only proxy ClassPath for given delegates. |
static ClassPathImplementation |
createProxyClassPathImplementation(ClassPathImplementation[] delegates)
Creates read only proxy ClassPathImplementation for given delegates. |
static PathResourceImplementation |
createResource(URL url)
Creates leaf PathResourceImplementation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static PathResourceImplementation createResource(URL url)
url
- the root of the resource. The URL must refer to folder. In the case of archive file
the jar protocol URL must be used.
public static ClassPathImplementation createClassPathImplementation(List entries)
PathResourceImplementation
entries.
entries
- list of PathResourceImplementation
instances;
cannot be null; can be empty
public static ClassPath createClassPath(List entries)
PathResourceImplementation
entries.
entries
- list of PathResourceImplementation
instances;
cannot be null; can be empty
public static ClassPath createClassPath(FileObject[] roots)
roots
- array of fileobjects which must correspond to directory.
In the case of archive file, the FileObject representing the root of the
archive must be used. Cannot be null; can be empty array; array can contain nulls.
public static ClassPath createClassPath(URL[] roots)
roots
- array of URLs which must correspond to directory.
In the case of archive file, the jar protocol URL must be used.
Cannot be null; can be empty array; array can contain nulls.
public static ClassPathImplementation createProxyClassPathImplementation(ClassPathImplementation[] delegates)
delegates
- ClassPathImplementations to delegate to.
public static ClassPath createProxyClassPath(ClassPath[] delegates)
delegates
- ClassPaths to delegate to.
|
org.netbeans.api.java/1 1.10.22 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |