Class TokenizedPath
java.lang.Object
org.apache.tools.ant.types.selectors.TokenizedPath
Container for a path that has been split into its components.
- Since:
- 1.8.0
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final TokenizedPathInstance that holds no tokens at all.
- 
Constructor SummaryConstructorsConstructorDescriptionTokenizedPath(String path) Initialize the TokenizedPath by parsing it.TokenizedPath(TokenizedPath parent, String child) Creates a new path as a child of another path.
- 
Method SummaryModifier and TypeMethodDescriptionintdepth()The depth (or length) of a path.booleantrue if the original paths are equal.Frombasetraverse the filesystem in order to find a file that matches the given name.inthashCode()booleanDo we have to traverse a symlink when trying to reach path from basedir?Creates a TokenizedPattern from the same tokens that make up this path.toString()
- 
Field Details- 
EMPTY_PATHInstance that holds no tokens at all.
 
- 
- 
Constructor Details- 
TokenizedPathInitialize the TokenizedPath by parsing it.- Parameters:
- path- The path to tokenize. Must not be- null.
 
- 
TokenizedPathCreates a new path as a child of another path.- Parameters:
- parent- the parent path
- child- the child, must not contain the file separator
 
 
- 
- 
Method Details- 
toString
- 
depthpublic int depth()The depth (or length) of a path.- Returns:
- int
 
- 
findFile
- 
isSymlinkDo we have to traverse a symlink when trying to reach path from basedir?- Parameters:
- base- base File (dir).
- Returns:
- boolean
 
- 
equals
- 
hashCode
- 
toPatternCreates a TokenizedPattern from the same tokens that make up this path.- Returns:
- TokenizedPattern
 
 
-