Modifier and Type | Field and Description |
---|---|
public static final DocPath | empty
The empty path. |
public static final DocPath | parent
The empty path. |
private final String |
Modifier and Type | Method and Description |
---|---|
public DocPath | |
public static DocPath | |
public boolean | equals(Object
the reference object with which to compare. other)Overrides java. Indicates whether some other object is "equal to" this one. |
public DocLink | |
public String | |
public int | |
public DocPath | |
public boolean | |
public DocPath | Returns: the pathReturns the path formed by eliminating empty components, '.' components, and redundant name/.. |
private static List | |
private static List | |
public DocPath | |
public DocPath | Returns: the simplified paththe path to be relativized. 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. |
public DocPath | |
public DocPath |
empty | back to summary |
---|---|
public static final DocPath empty The empty path. |
parent | back to summary |
---|---|
public static final DocPath parent The empty path. |
path | back to summary |
---|---|
private final String path |
DocPath | back to summary |
---|---|
protected DocPath(String p) |
basename | back to summary |
---|---|
public DocPath basename() |
create | back to summary |
---|---|
public static DocPath create(String p) Creates a path from a string. |
equals | back to summary |
---|---|
public boolean equals(Object other) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. |
fragment | back to summary |
---|---|
public DocLink fragment(String fragment) Creates a DocLink formed from this path and a fragment identifier. |
getPath | back to summary |
---|---|
public String getPath() Returns this path as a string.
|
hashCode | back to summary |
---|---|
public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
|
invert | back to summary |
---|---|
public DocPath invert() Return the inverse path for this path. For example, if the path is a/b/c, the inverse path is ../../..
|
isEmpty | back to summary |
---|---|
public boolean isEmpty() Return true if this path is empty.
|
normalize | back to summary |
---|---|
public DocPath normalize() Returns the path formed by eliminating empty components, '.' components, and redundant name/.. components.
|
normalize | back to summary |
---|---|
private static List |
normalize | back to summary |
---|---|
private static List |
parent | back to summary |
---|---|
public DocPath parent() |
relativize | back to summary |
---|---|
public DocPath 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. |
resolve | back to summary |
---|---|
public DocPath resolve(String p) Returns the path formed by appending the specified string to the current path. |
resolve | back to summary |
---|---|
public DocPath resolve(DocPath p) Returns the path by appending the specified path to the current path. |