Package org.apache.tools.ant.types
Class Path.PathElement
java.lang.Object
org.apache.tools.ant.types.Path.PathElement
- All Implemented Interfaces:
Iterable<Resource>,ResourceCollection
- Enclosing class:
- Path
Helper class, holds the nested
<pathelement> values.-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface org.apache.tools.ant.types.ResourceCollection
isEmpty, stream
-
Constructor Details
-
PathElement
public PathElement()
-
-
Method Details
-
setLocation
Set the location.- Parameters:
loc- aFilevalue
-
setPath
Set the path.- Parameters:
path- aStringvalue
-
getParts
Return the converted pathelements.- Returns:
- a
String[]value
-
iterator
Create an iterator. -
isFilesystemOnly
public boolean isFilesystemOnly()Check if this resource is only for filesystems.- Specified by:
isFilesystemOnlyin interfaceResourceCollection- Returns:
- true.
-
size
public int size()Get the number of resources.- Specified by:
sizein interfaceResourceCollection- Returns:
- the number of parts.
-