|
org.netbeans.api.java/1 1.13 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.netbeans.api.java.classpath.ClassPath.Entry
public final class ClassPath.Entry
Represents an individual entry in the ClassPath. An entry is a description of a folder, which is one of the ClassPath roots. Since the Entry does not control the folder's lifetime, the folder may be removed and the entry becomes invalid. It's also expected that ClassPath implementations may use other ClassPath entries as default or base for themselves, so Entries may be propagated between ClassPaths.
Method Summary | |
---|---|
ClassPath |
getDefiningClassPath()
Returns the ClassPath instance, which defines/introduces the Entry. |
IOException |
getError()
Retrieves the error condition of the Entry. |
FileObject |
getRoot()
The method returns the root folder represented by the Entry. |
URL |
getURL()
Returns URL of the class path root. |
boolean |
includes(FileObject file)
Check whether a file is included in this entry. |
boolean |
includes(String resource)
Check whether a file is included in this entry. |
boolean |
includes(URL file)
Check whether a file is included in this entry. |
boolean |
isValid()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public ClassPath getDefiningClassPath()
entries()
method.
public FileObject getRoot()
public boolean isValid()
public IOException getError()
getRoot()
would return a FileObject.
public URL getURL()
getRoot()
as
it can be called even if the root does not currently exist.
public boolean includes(String resource)
resource
- a path relative to @{link #getURL} (must be terminted with / if a non-root folder)
included
public boolean includes(URL file)
file
- a URL beneath @{link #getURL}
included
IllegalArgumentException
- in case the argument is not beneath getURL()
public boolean includes(FileObject file)
file
- a file inside @{link #getRoot}
included
IllegalArgumentException
- in case the argument is not beneath getRoot()
, or getRoot()
is nullpublic String toString()
|
org.netbeans.api.java/1 1.13 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |