|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.regexp.REProgram
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.
RE
,
RECompiler
Constructor Summary | |
REProgram(char[] instruction)
Constructs a program object from a character array |
|
REProgram(char[] instruction,
int lenInstruction)
Constructs a program object from a character array |
Method Summary | |
char[] |
getInstructions()
Returns a copy of the current regular expression program in a character array that is exactly the right length to hold the program. |
void |
setInstructions(char[] instruction,
int lenInstruction)
Sets a new regular expression program to run. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public REProgram(char[] instruction)
instruction
- Character array with RE opcode instructions in itpublic REProgram(char[] instruction, int lenInstruction)
instruction
- Character array with RE opcode instructions in itlenInstruction
- Amount of instruction array in useMethod Detail |
public char[] getInstructions()
public void setInstructions(char[] instruction, int lenInstruction)
instruction
- Program instruction bufferlenInstruction
- Length of instruction buffer in use
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |