public class TextTester extends Visitor
CodeGenerator.VALUE, or bindings to CodeGenerator.VALUE.
Note that this visitor only detects such productions but does not
add appropriate value elements.Transformer| Modifier and Type | Field and Description |
|---|---|
protected Analyzer |
analyzer
The analyzer utility.
|
protected boolean |
isTextOnly
Flag for whether the current production is text-only.
|
protected Runtime |
runtime
The runtime.
|
| Constructor and Description |
|---|
TextTester(Runtime runtime,
Analyzer analyzer)
Create a new text tester.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
markTextOnly(Production p,
boolean verbose)
Mark the specified production as text-only.
|
void |
visit(Action a)
Visit the specified action.
|
void |
visit(Binding b)
Visit the specified binding.
|
void |
visit(CharCase c)
Visit the specified character case.
|
void |
visit(CharSwitch s)
Visit the specified character switch.
|
void |
visit(Element e)
Visit the specified element.
|
void |
visit(Grammar g)
Visit the specified grammar.
|
void |
visit(Module m)
Visit the specified grammar.
|
void |
visit(NodeMarker m)
Visit the specified node marker.
|
void |
visit(NonTerminal nt)
Visit the specified nonterminal.
|
void |
visit(NullLiteral l)
Visit the specified null literal.
|
void |
visit(OrderedChoice c)
Visit the specified ordered choice.
|
void |
visit(ParserAction pa)
Visit the specified parser action.
|
void |
visit(Predicate p)
Visit the specified predicate.
|
void |
visit(Production p)
Visit the specified production.
|
void |
visit(Sequence s)
Visit the specified sequence.
|
void |
visit(Terminal t)
Visit the specified terminal.
|
void |
visit(UnaryOperator op)
Visit the specified unary operator.
|
dispatch, equals, hashCode, iterate, map, mapInPlace, unableToVisit, visitprotected final Runtime runtime
protected final Analyzer analyzer
protected boolean isTextOnly
public void visit(Grammar g)
public void visit(Module m)
public void visit(Production p)
public void visit(OrderedChoice c)
public void visit(Sequence s)
public void visit(Predicate p)
public void visit(Binding b)
public void visit(NonTerminal nt)
public void visit(CharCase c)
public void visit(CharSwitch s)
public void visit(Terminal t)
public void visit(UnaryOperator op)
public void visit(NullLiteral l)
public void visit(NodeMarker m)
public void visit(Action a)
public void visit(ParserAction pa)
public void visit(Element e)
public static void markTextOnly(Production p, boolean verbose)
p - The production.verbose - The flag for whether to be verbose.Copyright © 2014. All Rights Reserved.