public class ClasspathDirectory extends Object implements ClasspathEntry
Classpath directories
are described by an absolute path and
provide a collection of classpath files and sub-directories they contain (virtually, since there is no such thing as a
directory in classpath per se).Constructor and Description |
---|
ClasspathDirectory(String path) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getAbsolutePath()
Get an absolute path of a classpath entry.
|
List<ClasspathEntry> |
getEntries()
Get list of files and sub-directories residing in current
directory . |
long |
getLastModified()
Since a classpath directory is a virtual term - it cannot really have a last modified date, so -1 is always returned.
|
String |
getName()
Get a name of a classpath entry.
|
int |
hashCode() |
public ClasspathDirectory(String path)
public String getName()
ClasspathEntry
getName
in interface ClasspathEntry
public String getAbsolutePath()
ClasspathEntry
getAbsolutePath
in interface ClasspathEntry
/
public long getLastModified()
getLastModified
in interface ClasspathEntry
long
representation of the last modified datepublic List<ClasspathEntry> getEntries()
directory
.Copyright © 2003–2017 Magnolia International Ltd.. All rights reserved.