Package com.aspectran.core.util.wildcard
Class WildcardMatcher
- java.lang.Object
-
- com.aspectran.core.util.wildcard.WildcardMatcher
-
public class WildcardMatcher extends java.lang.Object
Checks whether a string matches a given wildcard pattern.
-
-
Constructor Summary
Constructors Constructor Description WildcardMatcher(WildcardPattern pattern)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
find()
java.lang.String
find(int group)
WildcardMatcher
first()
int
getSeparatorCount()
WildcardPattern
getWildcardPattern()
boolean
hasNext()
boolean
hasPrev()
WildcardMatcher
last()
static boolean
matches(WildcardPattern pattern, java.lang.CharSequence input)
Checks whether a string matches a given wildcard pattern.boolean
matches(java.lang.CharSequence input)
Checks whether a string matches a given wildcard pattern.java.lang.String
next()
java.lang.String
previous()
int
separate(java.lang.CharSequence input)
-
-
-
Constructor Detail
-
WildcardMatcher
public WildcardMatcher(WildcardPattern pattern)
-
-
Method Detail
-
matches
public boolean matches(java.lang.CharSequence input)
Checks whether a string matches a given wildcard pattern.- Parameters:
input
- the input string- Returns:
true
if string matches the pattern, otherwisefalse
-
separate
public int separate(java.lang.CharSequence input)
-
first
public WildcardMatcher first()
-
last
public WildcardMatcher last()
-
hasNext
public boolean hasNext()
-
hasPrev
public boolean hasPrev()
-
next
public java.lang.String next()
-
previous
public java.lang.String previous()
-
find
public java.lang.String find()
-
find
public java.lang.String find(int group)
-
getSeparatorCount
public int getSeparatorCount()
-
getWildcardPattern
public WildcardPattern getWildcardPattern()
-
matches
public static boolean matches(WildcardPattern pattern, java.lang.CharSequence input)
Checks whether a string matches a given wildcard pattern.- Parameters:
pattern
- the pattern to matchinput
- the character sequence to be matched- Returns:
true
if string matches the pattern, otherwisefalse
-
-