public class SunRegExpEvaluator extends Object implements RegExpEvaluator
RegExpEvaluator
that uses the Java Regular
Expression library.Constructor and Description |
---|
SunRegExpEvaluator() |
Modifier and Type | Method and Description |
---|---|
boolean |
matches(String value)
Returns true if the given String is matched by the regular expression of
this RegExpEvaluator
|
void |
setExpression(String rexpr)
Sets the regular expression to match against during a call to #matches
|
public void setExpression(String rexpr)
setExpression
in interface RegExpEvaluator
rexpr
- the regular expressionpublic boolean matches(String value)
matches
in interface RegExpEvaluator
value
- the String to check the production ofsetExpression(java.lang.String)
Copyright © 2017. All rights reserved.