EnvVisitor<T> class abstract

This abstract class defines a complete generic visitor for a parse tree produced by EnvParser.

T is the eturn type of the visit operation. Use void for operations with no return type.

Implementers

Constructors

EnvVisitor()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

aggregateResult(T? aggregate, T? nextResult) → T?
Aggregates the results of visiting multiple children of a node. After either all children are visited or {@link #shouldVisitNextChild} returns false, the aggregate value is returned as the result of {@link #visitChildren}.
inherited
defaultResult() → T?
Gets the default value returned by visitor methods. This value is returned by the default implementations of {@link #visitTerminal visitTerminal}, {@link #visitErrorNode visitErrorNode}. The default implementation of {@link #visitChildren visitChildren} initializes its aggregate result to this value.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
shouldVisitNextChild(RuleNode node, T? currentResult) bool
This method is called after visiting each child in {@link #visitChildren}. This method is first called before the first child is visited; at that point currentResult will be the initial value (in the default implementation, the initial value is returned by a call to {@link #defaultResult}. This method is not called after the last child is visited.
inherited
toString() String
A string representation of this object.
inherited
visit(ParseTree tree) → T?
{@inheritDoc}
inherited
visitChildren(RuleNode node) → T?
{@inheritDoc}
inherited
visitComment(CommentContext ctx) → T?
Visit a parse tree produced by EnvParser.comment. ctx the parse tree. Return the visitor result.
visitEnv(EnvContext ctx) → T?
Visit a parse tree produced by EnvParser.env. ctx the parse tree. Return the visitor result.
visitErrorNode(ErrorNode node) → T?
{@inheritDoc}
inherited
visitKey(KeyContext ctx) → T?
Visit a parse tree produced by EnvParser.key. ctx the parse tree. Return the visitor result.
visitLine(LineContext ctx) → T?
Visit a parse tree produced by EnvParser.line. ctx the parse tree. Return the visitor result.
visitString(StringContext ctx) → T?
Visit a parse tree produced by EnvParser.string. ctx the parse tree. Return the visitor result.
visitTerminal(TerminalNode node) → T?
{@inheritDoc}
inherited
visitValue(ValueContext ctx) → T?
Visit a parse tree produced by EnvParser.value. ctx the parse tree. Return the visitor result.

Operators

operator ==(Object other) bool
The equality operator.
inherited