public class REProgram extends Object
RE, 
RECompiler| Constructor and Description | 
|---|
| REProgram(char[] instruction)Constructs a program object from a character array | 
| REProgram(char[] instruction,
         int lenInstruction)Constructs a program object from a character array | 
| REProgram(int parens,
         char[] instruction)Constructs a program object from a character array | 
| Modifier and Type | Method and Description | 
|---|---|
| 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. | 
| char[] | getPrefix()Returns a copy of the prefix of current regular expression program in a character array. | 
| void | setInstructions(char[] instruction,
               int lenInstruction)Sets a new regular expression program to run. | 
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 usepublic REProgram(int parens,
                 char[] instruction)
parens - Count of parens in the programinstruction - Character array with RE opcode instructions in itpublic char[] getInstructions()
public char[] getPrefix()
getPrefix will return null.public void setInstructions(char[] instruction,
                            int lenInstruction)
instruction - Program instruction bufferlenInstruction - Length of instruction buffer in use