|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.acmsl.regexpplugin.RegexpManager
Generic class that manages which regexp engine to use.
Field Summary | |
protected static int |
COMPILER
Compiler position in the array object. |
protected static int |
ENGINE_VERSION
Engine version position in the array object. |
protected static int |
HELPER
Helper result position in the array object. |
protected static int |
MATCHER
Match result position in the array object. |
protected static int |
NAME
Engine name position in the array object. |
protected static int |
PACKAGE
Engine class package position in the array object. |
static org.acmsl.version.Version |
VERSION
Concrete version object updated everytime it's checked-in in a CVS repository. |
Method Summary | |
static Compiler |
createCompiler()
Creates a new compiler. |
static Helper |
createHelper()
Creates a new helper instance. |
static Matcher |
createMatcher()
Creates a new pattern matcher. |
protected static Compiler |
createSpecificCompiler(java.lang.String[] engine)
Creates a compiler determined by given class name. |
protected static Helper |
createSpecificHelper(java.lang.String[] engine)
Creates a compiler determined by given class name. |
static org.acmsl.version.Version |
getClassVersion()
Retrieves the current version of this class. |
protected java.lang.String[] |
getEngine()
Retrieves current engine information. |
org.acmsl.version.Version |
getVersion()
Retrieves the current version of this object. |
protected void |
setEngine(java.lang.String[] engine)
Sets the current engine. |
static void |
useGNURegexp()
Sets GNU Regexp implementation to be the engine used. |
static void |
useJakartaOroAwk()
Deprecated. Awk engine is not working correctly! |
static void |
useJakartaOroPerl5()
Sets Jakarta ORO Perl5 implementation to be the engine used. |
static void |
useJakartaRegexp()
Sets Jakarta Regexp implementation to be the engine used. |
static void |
useJDK14Regexp()
Sets JDK1.4 regexp implementation to be the engine used. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static final int NAME
protected static final int ENGINE_VERSION
protected static final int PACKAGE
protected static final int COMPILER
protected static final int MATCHER
protected static final int HELPER
public static final org.acmsl.version.Version VERSION
Method Detail |
protected java.lang.String[] getEngine()
protected void setEngine(java.lang.String[] engine)
engine
- the engine information.public static void useJakartaOroPerl5()
public static void useJakartaOroAwk()
public static void useJakartaRegexp()
public static void useJDK14Regexp()
public static void useGNURegexp()
public static Compiler createCompiler() throws RegexpEngineNotFoundException
RegexpEngineNotFoundException
- whenever the instantiation
of the engine classes fails.public static Helper createHelper() throws RegexpEngineNotFoundException
RegexpEngineNotFoundException
- whenever the instantiation
of the engine classes fails.protected static Compiler createSpecificCompiler(java.lang.String[] engine) throws RegexpEngineNotFoundException
RegexpEngineNotFoundException
- whenever the instantiation
of the engine classes fails.protected static Helper createSpecificHelper(java.lang.String[] engine) throws RegexpEngineNotFoundException
RegexpEngineNotFoundException
- whenever the instantiation
of the engine classes fails.public static Matcher createMatcher() throws RegexpEngineNotFoundException
RegexpEngineNotFoundException
- whenever the instantiation
of the engine classes fails.public org.acmsl.version.Version getVersion()
getVersion
in interface org.acmsl.version.Versionable
public static org.acmsl.version.Version getClassVersion()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |