public interface ReParserFactory
defines the factory interface to create instances of ReParser
. Different implementations of ReParser
understand different regular expression syntax. To provide
consistent syntax in an application, Nfa.setDefaultParserFactory(monq.jfa.ReParserFactory)
can be used to define the factory used
to create parser instances for all Nfa
s.
Modifier and Type | Method and Description |
---|---|
ReParser |
newReParser()
is a factory method that creates (must create) a new
ReParser of the same type each time it is
called. |
ReParser newReParser()
is a factory method that creates (must create) a new
ReParser
of the same type each time it is
called. All parsers returned must understand the same
syntax. Thereby an application can use consistent regular
expression syntax by always using the same factory.