Package org.apache.ivy.plugins.matcher
Class GlobPatternMatcher.GlobMatcher
- java.lang.Object
-
- org.apache.ivy.plugins.matcher.GlobPatternMatcher.GlobMatcher
-
- All Implemented Interfaces:
Matcher
- Enclosing class:
- GlobPatternMatcher
private static class GlobPatternMatcher.GlobMatcher extends java.lang.Object implements Matcher
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Boolean
exact
private java.lang.String
expression
private org.apache.oro.text.regex.Pattern
pattern
-
Constructor Summary
Constructors Constructor Description GlobMatcher(java.lang.String expression)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private java.lang.Boolean
calculateExact()
boolean
isExact()
Return if the matcher will match *only* if the expression equals the input.boolean
matches(java.lang.String input)
Check whether a given string is matched by this matcher.
-
-
-
Method Detail
-
matches
public boolean matches(java.lang.String input)
Description copied from interface:Matcher
Check whether a given string is matched by this matcher.
-
isExact
public boolean isExact()
Description copied from interface:Matcher
Return if the matcher will match *only* if the expression equals the input. WARN: This is used only as a performance trick, to avoid scanning for things when you already know exactly what you want. In the install task where it used it avoid scanning the repository to list all modules to find that only one matches, and that it has the name requested.
-
calculateExact
private java.lang.Boolean calculateExact()
-
-