org.apache.regexp
Class RETest
java.lang.Object
|
+--org.apache.regexp.RETest
- public class RETest
- extends Object
Data driven (and optionally interactive) testing harness to exercise regular
expression compiler and matching engine.
- Version:
- $Id: RETest.java,v 1.2 2000/04/30 20:42:35 jon Exp $
- Author:
- Jonathan Locke, Jon S. Stevens
Method Summary |
static void |
main(String[] arg)
Main program entrypoint. |
static boolean |
test()
Testing entrypoint. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RETest
public RETest()
- Constructor
RETest
public RETest(String[] arg)
- Constructor for test
- Parameters:
arg
- Command line arguments
main
public static void main(String[] arg)
- Main program entrypoint. If an argument is given, it will be compiled
and interactive matching will ensue. If no argument is given, the
file RETest.txt will be used as automated testing input.
- Parameters:
arg
- Command line arguments (optional regular expression)
test
public static boolean test()
throws Exception
- Testing entrypoint.
- Parameters:
arg
- Command line arguments- Throws:
Exception
- thrown in case of error