Home » openjdk-7 » com.sun.tools » javac » file » [javadoc | source]
com.sun.tools.javac.file
abstract public class: RelativePath [javadoc | source]
java.lang.Object
   com.sun.tools.javac.file.RelativePath

All Implemented Interfaces:
    Comparable

Direct Known Subclasses:
    RelativeFile, RelativeDirectory

Used to represent a platform-neutral path within a platform-specific container, such as a directory or zip file. Internally, the file separator is always '/'.

This is NOT part of any supported API. If you write code that depends on this, you do so at your own risk. This code and its internal interfaces are subject to change or deletion without notice.
Nested Class Summary:
public static class  RelativePath.RelativeDirectory  Used to represent a platform-neutral subdirectory within a platform-specific container, such as a directory or zip file. Internally, the file separator is always '/', and if the path is not empty, it always ends in a '/' as well. 
public static class  RelativePath.RelativeFile  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 '/'. 
Field Summary
protected final  String path     
Constructor:
 protected RelativePath(String p) 
    Parameters:
    p - must use '/' as an internal separator
Method from com.sun.tools.javac.file.RelativePath Summary:
basename,   compareTo,   dirname,   equals,   getFile,   getPath,   hashCode,   toString
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from com.sun.tools.javac.file.RelativePath Detail:
 abstract public String basename()
 public int compareTo(RelativePath other) 
 abstract public RelativeDirectory dirname()
 public boolean equals(Object other) 
 public File getFile(File directory) 
 public String getPath() 
 public int hashCode() 
 public String toString()