org.apache.regexp
Class REDebugCompiler
public class REDebugCompiler
A subclass of RECompiler which can dump a regular expression program
for debugging purposes.
$Id: REDebugCompiler.java 126149 2004-02-19 02:35:28Z vgritsenko $
(package private) static Hashtable | hashOpcode- Mapping from opcodes to descriptive strings
|
ESC_BACKREF, ESC_CLASS, ESC_COMPLEX, ESC_MASK, NODE_NORMAL, NODE_NULLABLE, NODE_TOPLEVEL, bracketEnd, bracketMin, bracketOpt, bracketStart, bracketUnbounded, brackets, hashPOSIX, idx, instruction, len, lenInstruction, maxBrackets, parens, pattern |
(package private) String | charToString(char c)- Return a string describing a (possibly unprintable) character.
|
void | dumpProgram(PrintWriter p)- Dumps the current program to a PrintWriter
|
(package private) String | nodeToString(int node)- Returns a descriptive string for a node in a regular expression program.
|
(package private) String | opcodeToString(char opcode)- Returns a descriptive string for an opcode.
|
allocBrackets, atom, bracket, branch, characterClass, closure, compile, emit, ensure, escape, expr, internalError, node, nodeInsert, reallocBrackets, setNextOfEnd, syntaxError, terminal |
hashOpcode
(package private) static Hashtable hashOpcode
Mapping from opcodes to descriptive strings
charToString
(package private) String charToString(char c)
Return a string describing a (possibly unprintable) character.
c - Character to convert to a printable representation
- String representation of character
dumpProgram
public void dumpProgram(PrintWriter p)
Dumps the current program to a PrintWriter
p - PrintWriter for program dump output
nodeToString
(package private) String nodeToString(int node)
Returns a descriptive string for a node in a regular expression program.
opcodeToString
(package private) String opcodeToString(char opcode)
Returns a descriptive string for an opcode.
opcode - Opcode to convert to a string
Copyright © 2001-2003 Apache Software Foundation. All Rights Reserved.