public class Drop extends AbstractFaAction
FaAction
which drops (deletes) matched
input.Modifier and Type | Field and Description |
---|---|
static FaAction |
DROP
a predefined
FaAction with priority 0 which drops
(deletes) matched text such that nothing is transfered to the
output. |
Constructor and Description |
---|
Drop(int priority)
use only if
DROP is not what you want because you
have to specify a priority. |
Modifier and Type | Method and Description |
---|---|
void |
invoke(java.lang.StringBuilder out,
int start,
DfaRun runner)
is called by methods of
DfaRun in case of a
match. |
java.lang.String |
toString() |
mergeWith, setPriority
public static final FaAction DROP
public Drop(int priority)
DROP
is not what you want because you
have to specify a priority.public java.lang.String toString()
toString
in class java.lang.Object
public void invoke(java.lang.StringBuilder out, int start, DfaRun runner)
FaAction
is called by methods of DfaRun
in case of a
match. Parameter yytext
contains the matching text
from position start
onwards. The callback may change
the whole of yytext
, but the under most
circumstances, only the matching text should be
changed. Parameter runner
is the DfaRun
object which called this function. Of interest are its fields
DfaRun.clientData
and DfaRun.collect
.