int priority
int next
int end
java.lang.CharSequence s
long matchMax
maximum length a match can have. If the value is greater zero,
no match found by this object will be longer. If
matchMax
is left at its default -1, the longest
match found will be no longer than 264 characters, which is probably long
after you ran out of memory.
monq.jfa.FaState startState
FaAction eofAction
DfaRun.FailedMatchBehaviour fmb
boolean collect
set this field to true
from an FaAction
callback to prevent the machinery to ship the filtered data. It
allows action callbacks invoked
later to
be sure that their first argument still contains previously
filtered data. Make sure this field is set to false
by some other action callback as soon as possible, because
otherwise filtered data will pile up unneccessarily in memory.
int maxCopy
defines the maximum number of unmatched characters handled in
one chunk when the machinery is operating in DfaRun.UNMATCHED_COPY
mode. When operating on a stretch of text that
contains no match at all, the machine runs in a tight inner loop
to find the next match as fast as possible. While doing so, no
output is delivered by the filter()
and
read()
methods because they call next()
, the method that runs the tight inner loop.
To prevent against memory overflow for really long stretches
of non-matching text, maxCopy
puts an upper
limit on the characters collected before next()
forcibly returns, even if no match is yet found. Except in very
special cases there should be no need to ever change this value
from its default of 8192. Any value ≤ 1 will result
in single character delivery by next()
. For the
filter()
methods this seems to
have a performance impact compared to large enough values of
30%.
boolean eofArmed
java.lang.Object clientData
Room for an arbitrary piece of data. If the callbacks of the
Dfa
want to communicate with each other — even
if only to count instances in the input stream — this field
should be used to store the data so that the Dfa
itself is kept thread safe. Storing e.g. counts in the callback
object itself would make the Dfa
no longer thread
safe.
Dfa dfa
CharSource in
DfaRun.FailedMatchBehaviour onFailedMatch
int matchStart
java.lang.StringBuilder readBuf
TextStore readTs
monq.jfa.SubmatchData smd
FaAction action
private java.lang.Object readResolve()
int i
Formatter[] ops
int numOps
java.lang.String emsg
int line
int column
java.lang.String text
java.lang.StringBuilder text
java.lang.String key
int partNo
int from
int to
int partNo
int from
int to
java.lang.String sep
int partFrom
int partTo
java.lang.StringBuilder text
int[] parts
byte[] ids
int numParts
java.lang.String methodName
java.lang.String key
java.lang.String pre
java.lang.String post
java.lang.String msg
Formatter f
TextSplitter splitter
java.lang.String s
FaAction[] steps
Dfa dfa
int count
TextSplitter splitter
Formatter f
java.lang.String key
int n
FaAction client
FaAction startAction
FaAction endAction
DfaRun.FailedMatchBehaviour fmb
java.lang.String name
monq.jfa.ctx.Context.Pop pop
java.util.Map<K,V> m