org.apache.regexp
Class RETest

java.lang.Object
  |
  +--org.apache.regexp.RETest

public class RETest
extends java.lang.Object

Data driven (and optionally interactive) testing harness to exercise regular expression compiler and matching engine.


Constructor Summary
RETest()
          Constructor
RETest(java.lang.String[] arg)
          Constructor for test
 
Method Summary
static void main(java.lang.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
 

Constructor Detail

RETest

public RETest()
Constructor


RETest

public RETest(java.lang.String[] arg)
Constructor for test

Parameters:
arg - Command line arguments
Method Detail

main

public static void main(java.lang.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 java.lang.Exception
Testing entrypoint.

Parameters:
arg - Command line arguments
Throws:
java.lang.Exception - thrown in case of error