public final class ClassPath.Entry extends Object
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
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.
|
int |
hashCode() |
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() |
public ClassPath getDefiningClassPath()
entries()
method.public FileObject getRoot()
public boolean isValid()
public IOException getError()
getRoot()
would return a FileObject.public URL getURL()
ClassPath.Entry.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 terminated 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 ClassPath.Entry.getURL()
public boolean includes(FileObject file)
file
- a file inside @{link #getRoot}included
IllegalArgumentException
- in case the argument is not beneath ClassPath.Entry.getRoot()
, or ClassPath.Entry.getRoot()
is null