|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.raelity.text.RegExpFactory
public class RegExpFactory
Factory class for vending RegExp instances. Most of the work is finding a regular expression implementation to use. Note: RegExpFactory has no public constructor.
RegExp
Field Summary | |
---|---|
protected static String |
reAdapted
The class name of the regular expression handler that is being adapted by the vended class. |
protected static Class |
reClass
The reClass variable holds the Class which is vended. |
protected static String |
reClassName
The name of the class that is being vended. |
protected static String |
reDisplayName
Name of package being used. |
protected static Vector<String> |
reImp
|
Method Summary | |
---|---|
static void |
addImplementation(String imp)
Append the argument to the list of known implementations. |
static boolean |
builtinTest()
Runs some tests using the known implementations. |
static RegExp |
create()
Create a new instance of a regular expresion handler. |
static RegExp |
create(String pattern)
Create a new instance of a regular expresion handler and compile pattern for the regular expression. |
static RegExp |
createReport(String pattern)
Create a new instance of a regular expression handler and compile the pattern. |
static void |
dumpResult(RegExp result)
Dump all the information about a match. |
static void |
dumpResult(RegExpResult result)
Same as dumpResult(RegExp) except it takes a RegExpResult. |
static String[] |
getKnownImplementations()
|
static String |
getRegExpAdapted()
|
static String |
getRegExpClass()
|
static String |
getRegExpDisplayName()
|
static boolean |
initFactory()
Look for the known implementations of RegExp. |
static void |
load(String reClassName)
Load reClassName and use it as the implementation of regular expression handling. |
static void |
main(String[] args)
Method declaration |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static Vector<String> reImp
protected static Class reClass
protected static String reClassName
protected static String reAdapted
protected static String reDisplayName
Method Detail |
---|
public static RegExp create()
RegExp
public static RegExp create(String pattern)
RegExp
public static RegExp createReport(String pattern)
RegExp
public static String[] getKnownImplementations()
public static void addImplementation(String imp)
public static String getRegExpClass()
public static String getRegExpAdapted()
public static String getRegExpDisplayName()
public static boolean initFactory()
public static void load(String reClassName) throws ClassNotFoundException, IllegalArgumentException, ClassCastException, NoSuchMethodException, SecurityException
ClassNotFoundException
IllegalArgumentException
ClassCastException
NoSuchMethodException
SecurityException
RegExp
,
RegExp.canInstantiate()
public static void main(String[] args)
args
-
public static boolean builtinTest()
public static void dumpResult(RegExp result)
matched_string [start,stop) num_chars
public static void dumpResult(RegExpResult result)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |