de.spieleck.app.jacson.util
Class RegExpUtil
java.lang.Object
de.spieleck.app.jacson.util.RegExpUtil
- All Implemented Interfaces:
- ConfigVerify.Acceptor, JacsonNames
- public class RegExpUtil
- extends java.lang.Object
- implements ConfigVerify.Acceptor, JacsonNames
A utility class to avoid creating of many oro-Objects.
Since Jacson works entirely singlethreaded a single instance
of an PatternMatcher and and PatternCompiler is enough.
This class is also responsible for processing regexp initializations
from the Jacson configuration.
- Author:
- fsn
Field Summary |
static java.lang.String |
ICASE_NODE
|
protected org.apache.oro.text.regex.PatternMatcher |
matcher
oro-Regexp-Matcher |
protected static RegExpUtil |
me
|
protected org.apache.oro.text.regex.PatternCompiler |
pc
oro-RegExp-Pattern-Compiler |
static java.lang.String |
REGEXP_NODE
|
Fields inherited from interface de.spieleck.app.jacson.JacsonNames |
BLOCKREPORT, JS_DEBUG_FLAG, JS_MAIN_CFG, JS_OBJ_EVAL, JS_OBJ_FILTER, JS_OBJ_LABEL, JS_OBJ_REPORT, JS_OBJ_SELECT, JS_OBJ_SOURCE, JS_PCK_EVAL, JS_PCK_FILTER, JS_PCK_REPORT, JS_PCK_SELECT, JS_PCK_SOURCE, JS_REP_BLOCK, JS_REP_CHUNK, JS_REP_EVAL, JS_REP_FILTER, JS_REP_LABEL, JS_REP_LIST, JS_REP_LOG, JS_REP_NAME, JS_REP_NUMBER, JS_REP_PROC, JS_REP_RESULT, JS_REP_SUMMARY, JS_REP_TIME, JS_REP_TSTAMP, JS_REPORT_CFG, JS_STATE_ID |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
REGEXP_NODE
public static final java.lang.String REGEXP_NODE
- See Also:
- Constant Field Values
ICASE_NODE
public static final java.lang.String ICASE_NODE
- See Also:
- Constant Field Values
me
protected static RegExpUtil me
matcher
protected org.apache.oro.text.regex.PatternMatcher matcher
- oro-Regexp-Matcher
pc
protected org.apache.oro.text.regex.PatternCompiler pc
- oro-RegExp-Pattern-Compiler
RegExpUtil
public RegExpUtil()
getPC
public org.apache.oro.text.regex.PatternCompiler getPC()
getMatcher
public org.apache.oro.text.regex.PatternMatcher getMatcher()
compile
public org.apache.oro.text.regex.Pattern compile(java.lang.String rxStr,
int options)
throws org.apache.oro.text.regex.MalformedPatternException
- Throws:
org.apache.oro.text.regex.MalformedPatternException
obtainPattern
public org.apache.oro.text.regex.Pattern obtainPattern(java.lang.String name,
ConfigNode node,
JacsonRegistry reg)
throws JacsonConfigException
- Throws:
JacsonConfigException
obtainPattern
public org.apache.oro.text.regex.Pattern obtainPattern(java.lang.String name,
ConfigNode node,
JacsonRegistry reg,
java.lang.String rNodeName)
throws JacsonConfigException
- Throws:
JacsonConfigException
accept
public boolean accept(ConfigNode node)
- Specified by:
accept
in interface ConfigVerify.Acceptor
acceptOptions
public static boolean acceptOptions(ConfigNode node)
Copyleft 2002 spieleck.de.