| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private static final Pattern | |
| private final Pattern |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if the path should be accepted, false if notthe path to check path)Implements org. |
| public boolean | equals(final Object
the other object obj)Overrides java. Implements org. |
| public boolean | |
| private static Pattern | Returns: the patternthe glob to match glob)Get a regular expression pattern which accept any path names which match the given glob. |
| public int | hashCode()
Overrides java. Implements org. |
| public String |
| glob | back to summary |
|---|---|
| private final String glob | |
| GLOB_PATTERN | back to summary |
|---|---|
| private static final Pattern GLOB_PATTERN | |
| pattern | back to summary |
|---|---|
| private final Pattern pattern | |
| GlobPathFilter | back to summary |
|---|---|
| pack-priv GlobPathFilter(final String glob) Construct a new instance.
| |
| accept | back to summary |
|---|---|
| public boolean accept(final String path) Implements org. Determine whether a path should be accepted.
| |
| equals | back to summary |
|---|---|
| public boolean equals(final Object obj) Overrides java. Implements org. Doc from org. Determine whether this filter is equal to another. Filters must implement meaningful (non-identity) equality semantics.
| |
| equals | back to summary |
|---|---|
| public boolean equals(final GlobPathFilter obj) | |
| getGlobPattern | back to summary |
|---|---|
| private static Pattern getGlobPattern(final String glob) Get a regular expression pattern which accept any path names which match the given glob. The glob patterns
function similarly to
/ is equivalent
to a glob pattern ending in /** in that the named directory is not itself included in the glob.
See also: "Patterns" in the Ant Manual | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Implements org. Doc from org. Calculate a unique hash code for this path filter. Equal path filters must yield identical hash codes.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
| |