|
|||||||||
| Home >> All >> org >> acmsl >> [ regexpplugin overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.acmsl.regexpplugin
Class RegexpManager

java.lang.Objectorg.acmsl.regexpplugin.RegexpManager
- public final class RegexpManager
- extends java.lang.Object
Generic class that manages which regexp engine to use.
- Version:
- $Revision: 1.12 $
| Field Summary | |
protected static int |
COMPILER
Compiler position in the array object. |
protected static int |
ENGINE_VERSION
Engine version position in the array object. |
private static java.lang.String[] |
GNU_REGEXP_114
GNU Regexp |
protected static int |
HELPER
Helper result position in the array object. |
private static java.lang.String[] |
JAKARTA_ORO_AWK
Deprecated. Awk engine is not working correctly! |
private static java.lang.String[] |
JAKARTA_ORO_PERL5
Jakarta Oro Perl5 |
private static java.lang.String[] |
JAKARTA_REGEXP
Jakarta Regexp |
private static java.lang.String[] |
JDK14_REGEXP
JDK1.4 |
private java.lang.String[] |
m__astrEngine
Private reference to the engine type. |
private static RegexpManager |
m__Singleton
Singleton instance. |
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 Version |
VERSION
Concrete version object updated everytime it's checked-in in a CVS repository. |
| Constructor Summary | |
private |
RegexpManager()
Private constructor to avoid accidental instantiation. |
| 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. |
private static Matcher |
createSpecificMatcher(java.lang.String[] engine)
Creates a matcher determined by given class name. |
static Version |
getClassVersion()
Retrieves the current version of this class. |
protected java.lang.String[] |
getEngine()
Retrieves current engine information. |
private static RegexpManager |
getInstance()
Common method to retrieve the singleton object. |
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. |
private void |
useGNURegexpEngine()
Sets GNU Regexp implementation to be the engine used. |
static void |
useJakartaOroAwk()
Deprecated. Awk engine is not working correctly! |
private void |
useJakartaOroAwkEngine()
Deprecated. Awk engine is not working correctly! |
static void |
useJakartaOroPerl5()
Sets Jakarta ORO Perl5 implementation to be the engine used. |
private void |
useJakartaOroPerl5Engine()
Sets Jakarta ORO Perl5 implementation to be the engine used. |
static void |
useJakartaRegexp()
Sets Jakarta Regexp implementation to be the engine used. |
private void |
useJakartaRegexpEngine()
Sets Jakarta Regexp implementation to be the engine used. |
static void |
useJDK14Regexp()
Sets JDK1.4 regexp implementation to be the engine used. |
private void |
useJDK14RegexpEngine()
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 |
NAME
protected static final int NAME
- Engine name position in the array object.
- See Also:
- Constant Field Values
ENGINE_VERSION
protected static final int ENGINE_VERSION
- Engine version position in the array object.
- See Also:
- Constant Field Values
PACKAGE
protected static final int PACKAGE
- Engine class package position in the array object.
- See Also:
- Constant Field Values
COMPILER
protected static final int COMPILER
- Compiler position in the array object.
- See Also:
- Constant Field Values
MATCHER
protected static final int MATCHER
- Match result position in the array object.
- See Also:
- Constant Field Values
HELPER
protected static final int HELPER
- Helper result position in the array object.
- See Also:
- Constant Field Values
JAKARTA_ORO_PERL5
private static final java.lang.String[] JAKARTA_ORO_PERL5
- Jakarta Oro Perl5
JAKARTA_ORO_AWK
private static final java.lang.String[] JAKARTA_ORO_AWK
- Deprecated. Awk engine is not working correctly!
- Jakarta Oro Awk
- Jakarta Oro Awk
JAKARTA_REGEXP
private static final java.lang.String[] JAKARTA_REGEXP
- Jakarta Regexp
JDK14_REGEXP
private static final java.lang.String[] JDK14_REGEXP
- JDK1.4
GNU_REGEXP_114
private static final java.lang.String[] GNU_REGEXP_114
- GNU Regexp
m__Singleton
private static RegexpManager m__Singleton
- Singleton instance.
m__astrEngine
private java.lang.String[] m__astrEngine
- Private reference to the engine type.
VERSION
public static final Version VERSION
- Concrete version object updated everytime it's checked-in in a CVS
repository.
| Constructor Detail |
RegexpManager
private RegexpManager()
- Private constructor to avoid accidental instantiation.
| Method Detail |
getInstance
private static RegexpManager getInstance()
- Common method to retrieve the singleton object.
getEngine
protected java.lang.String[] getEngine()
- Retrieves current engine information.
setEngine
protected void setEngine(java.lang.String[] engine)
- Sets the current engine.
useJakartaOroPerl5
public static void useJakartaOroPerl5()
- Sets Jakarta ORO Perl5 implementation to be the engine used.
useJakartaOroPerl5Engine
private void useJakartaOroPerl5Engine()
- Sets Jakarta ORO Perl5 implementation to be the engine used.
useJakartaOroAwk
public static void useJakartaOroAwk()
- Deprecated. Awk engine is not working correctly!
- Sets Jakarta ORO Awk implementation to be the engine used.
- Sets Jakarta ORO Awk implementation to be the engine used.
useJakartaOroAwkEngine
private void useJakartaOroAwkEngine()
- Deprecated. Awk engine is not working correctly!
- Sets Jakarta ORO Awk implementation to be the engine used.
- Sets Jakarta ORO Awk implementation to be the engine used.
useJakartaRegexp
public static void useJakartaRegexp()
- Sets Jakarta Regexp implementation to be the engine used.
useJakartaRegexpEngine
private void useJakartaRegexpEngine()
- Sets Jakarta Regexp implementation to be the engine used.
useJDK14Regexp
public static void useJDK14Regexp()
- Sets JDK1.4 regexp implementation to be the engine used.
useJDK14RegexpEngine
private void useJDK14RegexpEngine()
- Sets JDK1.4 regexp implementation to be the engine used.
useGNURegexp
public static void useGNURegexp()
- Sets GNU Regexp implementation to be the engine used.
useGNURegexpEngine
private void useGNURegexpEngine()
- Sets GNU Regexp implementation to be the engine used.
createCompiler
public static Compiler createCompiler() throws RegexpEngineNotFoundException
- Creates a new compiler.
createHelper
public static Helper createHelper() throws RegexpEngineNotFoundException
- Creates a new helper instance.
createSpecificCompiler
protected static Compiler createSpecificCompiler(java.lang.String[] engine) throws RegexpEngineNotFoundException
- Creates a compiler determined by given class name.
createSpecificHelper
protected static Helper createSpecificHelper(java.lang.String[] engine) throws RegexpEngineNotFoundException
- Creates a compiler determined by given class name.
createMatcher
public static Matcher createMatcher() throws RegexpEngineNotFoundException
- Creates a new pattern matcher.
createSpecificMatcher
private static Matcher createSpecificMatcher(java.lang.String[] engine) throws RegexpEngineNotFoundException
- Creates a matcher determined by given class name.
getVersion
public Version getVersion()
- Retrieves the current version of this object.
getClassVersion
public static Version getClassVersion()
- Retrieves the current version of this class.
|
|||||||||
| Home >> All >> org >> acmsl >> [ regexpplugin overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.acmsl.regexpplugin.RegexpManager