Class DocPath
- java.lang.Object
-
- gw.gosudoc.com.sun.tools.doclets.internal.toolkit.util.DocPath
-
@Deprecated public class DocPath extends Object
Deprecated.Abstraction for immutable relative paths. Paths always use '/' as a separator, and never begin or end with '/'.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.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description DocPath
basename()
Deprecated.static DocPath
create(String p)
Deprecated.Create a path from a string.boolean
equals(Object other)
Deprecated.static DocPath
forClass(ClassDoc cd)
Deprecated.Return the path for a class.static DocPath
forName(ClassDoc cd)
Deprecated.Return the path for the simple name of the class.static DocPath
forPackage(ClassDoc cd)
Deprecated.Return the path for the package of a class.static DocPath
forPackage(PackageDoc pd)
Deprecated.Return the path for a package.static DocPath
forRoot(PackageDoc pd)
Deprecated.Return the inverse path for a package.DocLink
fragment(String fragment)
Deprecated.String
getPath()
Deprecated.Return this path as a string.int
hashCode()
Deprecated.DocPath
invert()
Deprecated.Return the inverse path for this path.boolean
isEmpty()
Deprecated.Return true if this path is empty.DocPath
parent()
Deprecated.DocLink
query(String query)
Deprecated.static DocPath
relativePath(PackageDoc from, PackageDoc to)
Deprecated.Return the relative path from one package to another.DocPath
resolve(DocPath p)
Deprecated.Return the path by appending the specified path to the current path.DocPath
resolve(String p)
Deprecated.Return the path formed by appending the specified string to the current path.
-
-
-
Constructor Detail
-
DocPath
protected DocPath(String p)
Deprecated.
-
-
Method Detail
-
forClass
public static DocPath forClass(ClassDoc cd)
Deprecated.Return the path for a class. For example, if the class is java.lang.Object, the path is java/lang/Object.html.
-
forName
public static DocPath forName(ClassDoc cd)
Deprecated.Return the path for the simple name of the class. For example, if the class is java.lang.Object, the path is Object.html.
-
forPackage
public static DocPath forPackage(ClassDoc cd)
Deprecated.Return the path for the package of a class. For example, if the class is java.lang.Object, the path is java/lang.
-
forPackage
public static DocPath forPackage(PackageDoc pd)
Deprecated.Return the path for a package. For example, if the package is java.lang, the path is java/lang.
-
forRoot
public static DocPath forRoot(PackageDoc pd)
Deprecated.Return the inverse path for a package. For example, if the package is java.lang, the inverse path is ../...
-
relativePath
public static DocPath relativePath(PackageDoc from, PackageDoc to)
Deprecated.Return the relative path from one package to another.
-
basename
public DocPath basename()
Deprecated.
-
parent
public DocPath parent()
Deprecated.
-
resolve
public DocPath resolve(String p)
Deprecated.Return the path formed by appending the specified string to the current path.
-
resolve
public DocPath resolve(DocPath p)
Deprecated.Return the path by appending the specified path to the current path.
-
invert
public DocPath invert()
Deprecated.Return the inverse path for this path. For example, if the path is a/b/c, the inverse path is ../../..
-
isEmpty
public boolean isEmpty()
Deprecated.Return true if this path is empty.
-
getPath
public String getPath()
Deprecated.Return this path as a string.
-
-