|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.regexp.RECompiler
org.apache.regexp.REDebugCompiler
public class REDebugCompiler
A subclass of RECompiler which can dump a regular expression program for debugging purposes.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.regexp.RECompiler |
---|
RECompiler.RERange |
Field Summary | |
---|---|
(package private) static java.util.Hashtable |
hashOpcode
Mapping from opcodes to descriptive strings |
Fields inherited from class org.apache.regexp.RECompiler |
---|
bracketMin, bracketOpt, bracketUnbounded, ESC_BACKREF, ESC_CLASS, ESC_COMPLEX, ESC_MASK, hashPOSIX, idx, instruction, len, lenInstruction, NODE_NORMAL, NODE_NULLABLE, NODE_TOPLEVEL, parens, pattern |
Constructor Summary | |
---|---|
REDebugCompiler()
|
Method Summary | |
---|---|
(package private) java.lang.String |
charToString(char c)
Return a string describing a (possibly unprintable) character. |
void |
dumpProgram()
Dumps the current program to a System.out . |
void |
dumpProgram(java.io.PrintWriter p)
Dumps the current program to a PrintWriter . |
(package private) java.lang.String |
nodeToString(int node)
Returns a descriptive string for a node in a regular expression program. |
(package private) java.lang.String |
opcodeToString(char opcode)
Returns a descriptive string for an opcode. |
Methods inherited from class org.apache.regexp.RECompiler |
---|
atom, bracket, branch, characterClass, closure, compile, emit, ensure, escape, expr, internalError, node, nodeInsert, setNextOfEnd, syntaxError, terminal |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
static java.util.Hashtable hashOpcode
Constructor Detail |
---|
public REDebugCompiler()
Method Detail |
---|
java.lang.String opcodeToString(char opcode)
opcode
- Opcode to convert to a string
java.lang.String charToString(char c)
c
- Character to convert to a printable representation
java.lang.String nodeToString(int node)
node
- Node to describe
public void dumpProgram(java.io.PrintWriter p)
PrintWriter
.
p
- PrintWriter for program dump outputpublic void dumpProgram()
System.out
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |