de.dfki.lt.tools.tokenizer.regexp
Class JavaRegExpFactory

java.lang.Object
  extended byde.dfki.lt.tools.tokenizer.regexp.RegExpFactory
      extended byde.dfki.lt.tools.tokenizer.regexp.JavaRegExpFactory

public class JavaRegExpFactory
extends RegExpFactory

JavaRegExpFactory extends RegExpFactory for regular expressions of the java.util.regex package.

Version:
$Id: JavaRegExpFactory.java,v 1.4 2005/04/12 08:47:37 steffen Exp $
Author:
Joerg Steffen, DFKI

Constructor Summary
JavaRegExpFactory()
          This creates a new instance of JavaRegExpFactory.
 
Method Summary
 RegExp createRegExp(java.lang.String regExpString)
          This creates a regular expression object from an input string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaRegExpFactory

public JavaRegExpFactory()
This creates a new instance of JavaRegExpFactory.

Method Detail

createRegExp

public RegExp createRegExp(java.lang.String regExpString)
                    throws InitializationException
This creates a regular expression object from an input string.

Specified by:
createRegExp in class RegExpFactory
Parameters:
regExpString - a String with a regular expression
Returns:
a RegExp build from the input string
Throws:
InitializationException - if regular expression is not well formed