Class RegexMatcher
java.lang.Object
pl.decerto.hyperon.runtime.matcher.AbstractMatcher
pl.decerto.hyperon.runtime.matcher.RegexMatcher
- All Implemented Interfaces:
Matcher
- Direct Known Subclasses:
LikeMatcher
- Author:
- przemek hertel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T extends ValueHolder>
booleanCheck if value matches the pattern.protected StringpatternToRegex(String pattern) Methods inherited from class pl.decerto.hyperon.runtime.matcher.AbstractMatcher
isBlank, isDefaultPatternMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.smartparam.engine.core.matcher.Matcher
isReverse, setReverse
-
Constructor Details
-
RegexMatcher
public RegexMatcher()
-
-
Method Details
-
matches
Description copied from interface:MatcherCheck if value matches the pattern. Type can be used to parse value or to differentiate matchers behavior depending on value type. Type is defined per parameterLevel.- Type Parameters:
T- level type- Parameters:
value- value form query (provided by user)pattern- pattern from parameter matrix (can be '*')type- type of value, might be null if none was set- Returns:
- true if value matched, false otherwise
-
patternToRegex
-