public class REProgram extends Object implements Serializable
RE,
RECompiler,
Serialized Form| 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.
|
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(int parens,
char[] instruction)
parens - Count of parens in the programinstruction - 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 char[] getInstructions()
public void setInstructions(char[] instruction,
int lenInstruction)
instruction - Program instruction bufferlenInstruction - Length of instruction buffer in useCopyright © 2018–2021 mhoffrogge. All rights reserved.