Package org.exolab.castor.util
Class SunRegExpEvaluator
- java.lang.Object
-
- org.exolab.castor.util.SunRegExpEvaluator
-
- All Implemented Interfaces:
RegExpEvaluator
public class SunRegExpEvaluator extends java.lang.Object implements RegExpEvaluator
An implementation ofRegExpEvaluatorthat uses the Java Regular Expression library.- Since:
- 1.3.2
- Author:
- George Varghese
-
-
Constructor Summary
Constructors Constructor Description SunRegExpEvaluator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanmatches(java.lang.String value)Returns true if the given String is matched by the regular expression of this RegExpEvaluatorvoidsetExpression(java.lang.String rexpr)Sets the regular expression to match against during a call to #matches
-
-
-
Method Detail
-
setExpression
public void setExpression(java.lang.String rexpr)
Sets the regular expression to match against during a call to #matches- Specified by:
setExpressionin interfaceRegExpEvaluator- Parameters:
rexpr- the regular expression
-
matches
public boolean matches(java.lang.String value)
Returns true if the given String is matched by the regular expression of this RegExpEvaluator- Specified by:
matchesin interfaceRegExpEvaluator- Parameters:
value- the String to check the production of- Returns:
- true if the given string matches the regular expression of this RegExpEvaluator
- See Also:
setExpression(java.lang.String)
-
-