com.sun.tools.javac.file
Class RelativePath.RelativeFile

java.lang.Object
  extended by com.sun.tools.javac.file.RelativePath
      extended by 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 '/'.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.sun.tools.javac.file.RelativePath
RelativePath.RelativeDirectory, RelativePath.RelativeFile
 
Field Summary
 
Fields inherited from class com.sun.tools.javac.file.RelativePath
path
 
Constructor Summary
RelativePath.RelativeFile(RelativePath.RelativeDirectory d, RelativePath p)
           
RelativePath.RelativeFile(RelativePath.RelativeDirectory d, java.lang.String p)
           
RelativePath.RelativeFile(java.lang.String p)
           
 
Method Summary
 java.lang.String basename()
           
 RelativePath.RelativeDirectory dirname()
           
(package private) static RelativePath.RelativeFile forClass(java.lang.CharSequence className, JavaFileObject.Kind kind)
           
(package private)  java.util.zip.ZipEntry getZipEntry(java.util.zip.ZipFile zip)
           
 java.lang.String toString()
           
 
Methods inherited from class com.sun.tools.javac.file.RelativePath
compareTo, equals, getFile, getPath, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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)
Method Detail

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