org.apache.tools.ant.types.selectors
public class TokenizedPath extends Object
Since: 1.8.0
| Field Summary | |
|---|---|
| static TokenizedPath | EMPTY_PATH
Instance that holds no tokens at all. |
| Constructor Summary | |
|---|---|
| TokenizedPath(String path)
Initialize the TokenizedPath by parsing it. | |
| TokenizedPath(TokenizedPath parent, String child)
Creates a new path as a child of another path.
| |
| Method Summary | |
|---|---|
| int | depth()
The depth (or length) of a path. |
| boolean | equals(Object o)
true if the original paths are equal. |
| File | findFile(File base, boolean cs)
From base traverse the filesystem in order to find
a file that matches the given name.
|
| int | hashCode() |
| boolean | isSymlink(File base)
Do we have to traverse a symlink when trying to reach path from
basedir? |
| TokenizedPattern | toPattern()
Creates a TokenizedPattern from the same tokens that make up
this path. |
| String | toString() |
Parameters: path The path to tokenize. Must not be
null.
Parameters: parent the parent path child the child, must not contain the file separator
base traverse the filesystem in order to find
a file that matches the given name.
Parameters: base base File (dir). cs whether to scan case-sensitively.
Returns: File object that points to the file in question or null.
Parameters: base base File (dir).
Returns: The original path String