Package | Description |
---|---|
monq.jfa |
Implements Finite Automata, deterministic and
nondeterministic, with an engine for high throughput filtering of
text.
|
monq.jfa.actions |
contains general purpose classes to be used as callbacks in
finite automata created with package
monq.jfa . |
monq.jfa.ctx |
adds support for recursive parsing to jfa that in particular
allows easy XML parsing as an alternative to SAX.
|
Modifier and Type | Method and Description |
---|---|
AbstractFaAction |
AbstractFaAction.setPriority(int p) |
Modifier and Type | Class and Description |
---|---|
class |
Call
|
class |
Copy
implements an
FaAction which merely copies matched input to
the output. |
class |
Count
counts matches and can then be used with
If to perform
conditional actions depending on whether a threshold count is
reached. |
class |
Drop
implements an
FaAction which drops (deletes) matched
input. |
class |
Embed
implements an
FaAction which embeds the matched input
into two fixed strings. |
class |
Fail
implements an
FaAction which unconditionally throws a
CallbackException with the message specified in the
constructor. |
class |
Hold
hold back output until a decision can be made whether to ship or
to drop filtered output.
|
class |
If
|
class |
LowerCase
implements an
FaAction which applies
Character.toLowerCase to every character of the
match. |
class |
Printf
implements an
FaAction to apply a PrintfFormatter to the matched text. |
class |
Replace
implements an
FaAction which replaces the matched input
with a fixed string. |
class |
Run
runs several
FaAction objects, one after another. |
class |
SearchReplace
implements an
FaAction which scans the matched text for a
given regular expression and replaces those matches by applying a
PrintfFormatter . |
class |
Stop
|
class |
Store
an
FaAction to store away the match in a
Map . |
class |
SwitchDfa
|
class |
TailContextN
implements an
FaAction which pushes a trailing context back
into the input and then calls a client action. |
class |
UpperCase
implements an
FaAction which applies
Character.toUpperCase to every character of the
match. |
Modifier and Type | Method and Description |
---|---|
AbstractFaAction |
Count.add(int incr)
returns an
FaAction which changes the counter
according to the
given increment incr . |
AbstractFaAction |
Hold.drop()
create an
FaAction which drops (deletes) the
output
held back by this object. |
AbstractFaAction |
Count.reset()
returns an
FaAction which resets the counter to
zero. |
AbstractFaAction |
Hold.ship()
create an
FaAction which ships (delivers) the
output
held back by this object. |
Modifier and Type | Class and Description |
---|---|
class |
Context
manages a context when running a
DfaRun . |
class |
IfContext
|