public class Transformer.Lifter extends GrammarVisitor
analyzer, isBound, isLastElement, isPredicate, isRepeatedOnce, isTopLevel, isVoided, needsSequence, runtime, transformInPlace| Constructor and Description |
|---|
Transformer.Lifter()
Create a new lifter.
|
| Modifier and Type | Method and Description |
|---|---|
protected Binding |
bind(Element e)
Bind the specified element.
|
protected void |
lift(Type type,
NonTerminal nt,
OrderedChoice c)
Create a new production with the specified type, nonterminal,
and ordered choice.
|
protected Sequence |
process(Element e,
boolean bound)
Process the specified repeated, optional, or predicated
element.
|
Element |
visit(Option o)
Visit the specified option.
|
Element |
visit(OrderedChoice c)
Visit the specified ordered choice.
|
Element |
visit(Predicate p)
Visit the specified predicate.
|
Element |
visit(Repetition r)
Visit the specified repetition.
|
visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visitdispatch, equals, hashCode, iterate, map, mapInPlace, unableToVisit, visitprotected Binding bind(Element e)
e - The element.protected Sequence process(Element e, boolean bound)
e - The element.bound - The flag for whether the element's value is bound.protected void lift(Type type, NonTerminal nt, OrderedChoice c)
current production's attributes and
text-only and token-level marks, recursively processes the
productions, and adds it to the grammar.type - The type.nt - The nonterminal.c - The ordered choice.public Element visit(OrderedChoice c)
visit in class GrammarVisitorpublic Element visit(Repetition r)
visit in class GrammarVisitorpublic Element visit(Option o)
visit in class GrammarVisitorpublic Element visit(Predicate p)
visit in class GrammarVisitorCopyright © 2014. All Rights Reserved.