|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PatternMatcher<E>
Compiles and matches a pattern against a value
Method Summary | |
---|---|
E |
compilePattern(String data)
Translate the given String into an object
representing the pattern matchable by this class. |
boolean |
isLiteral(String pattern)
Determines if the pattern is a simple literal string or contains wildcards that will need to be processed |
boolean |
match(Map<String,String> map,
String data,
E expr)
Match a pattern against a string |
Method Detail |
---|
boolean isLiteral(String pattern)
pattern
- The string pattern
E compilePattern(String data)
Translate the given String
into an object
representing the pattern matchable by this class.
data
- The string to translate.
NullPointerException
- If data is null.boolean match(Map<String,String> map, String data, E expr)
map
- The map to store matched valuesdata
- The string to matchexpr
- The compiled wildcard expression
NullPointerException
- If any parameters are null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |