public class REDebugCompiler extends RECompiler
RECompiler.RERange
Modifier and Type | Field and Description |
---|---|
(package private) static java.util.Hashtable |
hashOpcode
Mapping from opcodes to descriptive strings
|
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 and Description |
---|
REDebugCompiler() |
Modifier and Type | Method and Description |
---|---|
(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.
|
atom, bracket, branch, characterClass, closure, compile, emit, ensure, escape, expr, internalError, node, nodeInsert, setNextOfEnd, syntaxError, terminal
static java.util.Hashtable hashOpcode
java.lang.String opcodeToString(char opcode)
opcode
- Opcode to convert to a stringjava.lang.String charToString(char c)
c
- Character to convert to a printable representationjava.lang.String nodeToString(int node)
node
- Node to describepublic void dumpProgram(java.io.PrintWriter p)
PrintWriter
.p
- PrintWriter for program dump outputpublic void dumpProgram()
System.out
.Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.