org.apache.regexp
public class REProgram extends Object implements Serializable
Version: $Id: REProgram.java 518156 2007-03-14 14:31:26Z vgritsenko $
See Also: RE
Field Summary | |
---|---|
int | flags |
char[] | instruction |
int | lenInstruction |
int | maxParens |
static int | OPT_HASBACKREFS |
static int | OPT_HASBOL |
char[] | prefix |
Constructor Summary | |
---|---|
REProgram(char[] instruction)
Constructs a program object from a character array | |
REProgram(int parens, 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. |
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. |
Parameters: instruction Character array with RE opcode instructions in it
Parameters: parens Count of parens in the program instruction Character array with RE opcode instructions in it
Parameters: instruction Character array with RE opcode instructions in it lenInstruction Amount of instruction array in use
Returns: A copy of the current compiled RE program
getPrefix
will return null.Returns: A copy of the prefix of current compiled RE program
Parameters: instruction Program instruction buffer lenInstruction Length of instruction buffer in use