dk.brics.relaxng.converter.xmlschema
Class RegExp
java.lang.Object
dk.brics.relaxng.converter.xmlschema.RegExp
public class RegExp
- extends Object
Converter from XML Schema pattern regexps to automata.
Constructor Summary |
RegExp(String s)
Constructs a new regular expression from its string representation. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RegExp
public RegExp(String s)
throws ParseException
- Constructs a new regular expression from its string representation.
- Parameters:
s
- regular expression in XML Schema syntax
- Throws:
ParseException
- if a syntax error is detected (this parser assumes
that the input is a syntactically correct regular expression, so not
all syntax errors are detected)
toAutomaton
public Automaton toAutomaton()
- Converts this regular expression into an automaton.
- Returns:
- automaton
Copyright © 2005-2010 Anders Møller.