| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.tools.ant.types.selectors.TokenizedPath
public class TokenizedPath
Container for a path that has been split into its components.
| Field Summary | |
|---|---|
| static TokenizedPath | EMPTY_PATHInstance that holds no tokens at all. | 
| Constructor Summary | |
|---|---|
| TokenizedPath(java.lang.String path)Initialize the TokenizedPath by parsing it. | |
| TokenizedPath(TokenizedPath parent,
              java.lang.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(java.lang.Object o)true if the original paths are equal. | 
|  java.io.File | findFile(java.io.File base,
         boolean cs)From basetraverse the filesystem in order to find
 a file that matches the given name. | 
|  int | hashCode() | 
|  boolean | isSymlink(java.io.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. | 
|  java.lang.String | toString() | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, finalize, getClass, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
|---|
public static final TokenizedPath EMPTY_PATH
| Constructor Detail | 
|---|
public TokenizedPath(java.lang.String path)
path - The path to tokenize. Must not be
                null.
public TokenizedPath(TokenizedPath parent,
                     java.lang.String child)
parent - the parent pathchild - the child, must not contain the file separator| Method Detail | 
|---|
public java.lang.String toString()
toString in class java.lang.Objectpublic int depth()
public java.io.File findFile(java.io.File base,
                             boolean cs)
base traverse the filesystem in order to find
 a file that matches the given name.
base - base File (dir).cs - whether to scan case-sensitively.
public boolean isSymlink(java.io.File base)
base - base File (dir).public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic TokenizedPattern toPattern()
| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||