Package | Description |
---|---|
monq.jfa |
Implements Finite Automata, deterministic and
nondeterministic, with an engine for high throughput filtering of
text.
|
monq.jfa.ctx |
adds support for recursive parsing to jfa that in particular
allows easy XML parsing as an alternative to SAX.
|
monq.programs |
a collection of command line programs.
|
Modifier and Type | Field and Description |
---|---|
static DfaRun.FailedMatchBehaviour |
DfaRun.UNMATCHED_COPY
requests the
DfaRun object to copy input not
matched by the DFA to the output. |
static DfaRun.FailedMatchBehaviour |
DfaRun.UNMATCHED_DROP
requests the
DfaRun object to drop (delete) input
not matched by the DFA. |
static DfaRun.FailedMatchBehaviour |
DfaRun.UNMATCHED_THROW
requests the
DfaRun to throw an exception if it
encounters input not matched by the DFA. |
Modifier and Type | Method and Description |
---|---|
DfaRun.FailedMatchBehaviour |
DfaRun.getFailedMatchBehaviour()
returns the currently active behaviour for unmatched
input.
|
Modifier and Type | Method and Description |
---|---|
Dfa |
Nfa.compile(DfaRun.FailedMatchBehaviour fmb)
compiles
this into a Dfa with the given
behaviour for non-matching input. |
Dfa |
Nfa.compile(DfaRun.FailedMatchBehaviour fmb,
FaAction eofAction)
compiles this non-deterministic finite automaton into a
deterministic finite automaton.
|
void |
DfaRun.setOnFailedMatch(DfaRun.FailedMatchBehaviour b)
changes the way how unmatched input is handled.
|
static Dfa |
Misc.wrapRoi(java.lang.CharSequence reStart,
FaAction startAction,
DfaRun.FailedMatchBehaviour inRoi,
java.lang.CharSequence reEnd,
FaAction endAction,
DfaRun.FailedMatchBehaviour outsideRoi,
Nfa client)
wraps a
Nfa into another one which defines a region
of interest (ROI). |
Modifier and Type | Method and Description |
---|---|
ContextManager |
ContextManager.setDefaultFMB(DfaRun.FailedMatchBehaviour fmb)
defines the default behaviour into which the
DfaRun is switched, when a context is entered. |
Context |
Context.setFMB(DfaRun.FailedMatchBehaviour fmb)
specifies how the
DfaRun should handle
non-matching text within the context. |
Constructor and Description |
---|
Grep(java.lang.String roiOn,
java.lang.String roiOff,
java.lang.String rfOn,
java.lang.String rfOff,
DfaRun.FailedMatchBehaviour fmRoi,
boolean select,
boolean copyEnv,
boolean autoPrio,
java.lang.String[] args)
create a
Grep with ROI. |