public interface LexicalContextNode
LexicalContext
Modifier and Type | Method and Description |
---|---|
Node |
accept(LexicalContext lc,
NodeVisitor<? extends LexicalContext> visitor)
Accept function for the node given a lexical context.
|
<R> R |
accept(LexicalContext lc,
TranslatorNodeVisitor<? extends LexicalContext,R> visitor) |
default Node |
accept(NodeVisitor<? extends LexicalContext> visitor)
Helper method for accept for items of this lexical context, delegates to the subclass accept
and makes sure that the node is on the context before accepting and gets popped after
accepting (and that the stack is consistent in that the node has been replaced with the
possible new node resulting in visitation)
|
default <R> R |
accept(TranslatorNodeVisitor<? extends LexicalContext,R> visitor) |
Node accept(LexicalContext lc, NodeVisitor<? extends LexicalContext> visitor)
lc
- lexical contextvisitor
- node visitor<R> R accept(LexicalContext lc, TranslatorNodeVisitor<? extends LexicalContext,R> visitor)
default Node accept(NodeVisitor<? extends LexicalContext> visitor)
default <R> R accept(TranslatorNodeVisitor<? extends LexicalContext,R> visitor)