A class that holds compiled regular expressions. This is exposed mainly for use by the recompile utility (which helps
you produce precompiled REProgram objects). You should not otherwise need to work directly with this class.
Returns a copy of the current regular expression program in a character array that is exactly the right length to
hold the program. If there is no program compiled yet, getInstructions() will return null.
Returns a copy of the prefix of current regular expression program in a character array. If there is no prefix,
or there is no program compiled yet, getPrefix will return null.
A copy of the prefix of current compiled RE program
public void setInstructions(char instruction,
Sets a new regular expression program to run. It is this method which performs any special compile-time search
optimizations. Currently only two optimizations are in place - one which checks for backreferences (so that they
can be lazily allocated) and another which attempts to find an prefix anchor string so that substantial amounts
of input can potentially be skipped without running the actual program.
instruction - Program instruction buffer
lenInstruction - Length of instruction buffer in use