Klasse DocPath
java.lang.Object
org.jdrupes.mdoclet.internal.doclets.toolkit.util.DocPath
Abstraction for immutable relative paths.
Paths always use ‘/’ as a separator, and never begin or end with ‘/’.
-
Feldübersicht
-
Konstruktorübersicht
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungbasename()
static DocPath
Creates a path from a string.boolean
Creates a DocLink formed from this path and a fragment identifier.getPath()
Returns this path as a string.int
hashCode()
invert()
Return the inverse path for this path.boolean
isEmpty()
Return true if this path is empty.Returns the path formed by eliminating empty components, ‘.’ components, and redundant name/.. components.parent()
relativize
(DocPath other) Normalize and relativize a path against this path, assuming that this path is for a file (not a directory), in which the other path will appear.Returns the path formed by appending the specified string to the current path.Returns the path by appending the specified path to the current path.
-
Felddetails
-
empty
The empty path. -
parent
The empty path.
-
-
Konstruktordetails
-
DocPath
-
-
Methodendetails
-
create
Creates a path from a string.- Parameter:
p
- the string- Gibt zurück:
- the path
-
equals
-
hashCode
-
basename
-
parent
-
resolve
Returns the path formed by appending the specified string to the current path.- Parameter:
p
- the string- Gibt zurück:
- the path
-
resolve
Returns the path by appending the specified path to the current path.- Parameter:
p
- the path- Gibt zurück:
- the path
-
invert
Return the inverse path for this path.For example, if the path is a/b/c, the inverse path is ../../..
- Gibt zurück:
- the path
-
normalize
Returns the path formed by eliminating empty components, ‘.’ components, and redundant name/.. components.- Gibt zurück:
- the path
-
relativize
Normalize and relativize a path against this path, assuming that this path is for a file (not a directory), in which the other path will appear.- Parameter:
other
- the path to be relativized.- Gibt zurück:
- the simplified path
-
isEmpty
Return true if this path is empty.- Gibt zurück:
- true if this path is empty
-
fragment
Creates a DocLink formed from this path and a fragment identifier.- Parameter:
fragment
- the fragment- Gibt zurück:
- the link
-
getPath
Returns this path as a string.- Gibt zurück:
- the path
-