|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.regexp.REProgram
public class 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
,
Serialized FormField Summary | |
---|---|
(package private) int |
flags
|
(package private) char[] |
instruction
|
(package private) int |
lenInstruction
|
(package private) int |
maxParens
|
(package private) static int |
OPT_HASBACKREFS
|
(package private) static int |
OPT_HASBOL
|
(package private) char[] |
prefix
|
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 |
|
REProgram(int parens,
char[] instruction)
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
static final int OPT_HASBACKREFS
static final int OPT_HASBOL
char[] instruction
int lenInstruction
char[] prefix
int flags
int maxParens
Constructor Detail |
---|
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 useMethod Detail |
---|
public char[] getInstructions()
public void setInstructions(char[] instruction, int lenInstruction)
instruction
- Program instruction bufferlenInstruction
- Length of instruction buffer in usepublic char[] getPrefix()
getPrefix
will return null.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |