From: Nat P. <np...@us...> - 2002-10-22 13:01:02
|
Update of /cvsroot/mockobjects/mockobjects-java/src/jdk/1.4/com/mockobjects/dynamic In directory usw-pr-cvs1:/tmp/cvs-serv638/src/jdk/1.4/com/mockobjects/dynamic Modified Files: Matches.java Log Message: Fixed errata and added more documentation to javadoc comments. Index: Matches.java =================================================================== RCS file: /cvsroot/mockobjects/mockobjects-java/src/jdk/1.4/com/mockobjects/dynamic/Matches.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- Matches.java 21 Oct 2002 22:55:08 -0000 1.1 +++ Matches.java 22 Oct 2002 13:00:58 -0000 1.2 @@ -15,8 +15,16 @@ private Pattern _pattern; private Matcher _matcher; - /** Creates a new instance of IsEqual - */ + /** Creates a new Matches predicate. + * + * @param regex + * A regular expression string used to create a + * {@link java.util.regex.Pattern}. The {@link #eval} method + * returns true when applied to Strings that match this pattern. + * Matching is tested by calling the + * {@link java.util.regex.Matcher#matches} method of a + * {@link java.util.regex.Matcher} object. + */ public Matches( String regex ) { _pattern = Pattern.compile(regex); } |