com.sun.tools.javac.file
Class RelativePath.RelativeFile
java.lang.Object
com.sun.tools.javac.file.RelativePath
com.sun.tools.javac.file.RelativePath.RelativeFile
- All Implemented Interfaces:
- java.lang.Comparable<RelativePath>
- Enclosing class:
- RelativePath
public static class RelativePath.RelativeFile
- extends RelativePath
Used to represent a platform-neutral file within a platform-specific
container, such as a directory or zip file.
Internally, the file separator is always '/'. It never ends in '/'.
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
RelativePath.RelativeFile
public RelativePath.RelativeFile(java.lang.String p)
RelativePath.RelativeFile
public RelativePath.RelativeFile(RelativePath.RelativeDirectory d,
java.lang.String p)
- Parameters:
p - must use '/' as an internal separator
RelativePath.RelativeFile
RelativePath.RelativeFile(RelativePath.RelativeDirectory d,
RelativePath p)
forClass
static RelativePath.RelativeFile forClass(java.lang.CharSequence className,
JavaFileObject.Kind kind)
dirname
public RelativePath.RelativeDirectory dirname()
- Specified by:
dirname in class RelativePath
basename
public java.lang.String basename()
- Specified by:
basename in class RelativePath
getZipEntry
java.util.zip.ZipEntry getZipEntry(java.util.zip.ZipFile zip)
toString
public java.lang.String toString()
- Overrides:
toString in class RelativePath