net.sf.jga.fn.string
public class Match extends AbstractUnaryPredicate<String> implements Serializable
Copyright © 2003 David A. Hall
Nested Class Summary | |
---|---|
interface | Match.Visitor
Interface for classes that may interpret a Match
predicate. |
Constructor Summary | |
---|---|
Match() | |
Match(String regex) |
Method Summary | |
---|---|
void | accept(Visitor v)
Calls the Visitor's visit(Match) method, if it
implements the nested Visitor interface. |
String | getRegex()
Returns the format object used to present values in formatted form. |
boolean | p(String arg)
Tests a string against the regular expression given at construction
|
String | toString() |
visit(Match)
method, if it
implements the nested Visitor interface.Returns: the format used to present values
Parameters: arg the value to tested
Returns: true if the string matches the regular expression given at construction