CandidBaseVisitor<T> class
This class provides an empty implementation of CandidVisitor, which can be extended to create a visitor which only needs to handle a subset of the available methods.
T
is the return type of the visit operation. Use void
for
operations with no return type.
- Implemented types
- Implementers
Constructors
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
-
visitActor(
ActorContext ctx) → T? -
The default implementation returns the result of calling
visitChildren
onctx
.override -
visitActorType(
ActorTypeContext ctx) → T? -
The default implementation returns the result of calling
visitChildren
onctx
.override -
visitBlobType(
BlobTypeContext ctx) → T? -
The default implementation returns the result of calling
visitChildren
onctx
.override -
visitBoolType(
BoolTypeContext ctx) → T? -
The default implementation returns the result of calling
visitChildren
onctx
.override -
visitChildren(
RuleNode node) → T? -
{@inheritDoc}
inherited
-
visitDataType(
DataTypeContext ctx) → T? -
The default implementation returns the result of calling
visitChildren
onctx
.override -
visitDef(
DefContext ctx) → T? -
The default implementation returns the result of calling
visitChildren
onctx
.override -
visitEmptyType(
EmptyTypeContext ctx) → T? -
The default implementation returns the result of calling
visitChildren
onctx
.override -
visitErrorNode(
ErrorNode node) → T? -
{@inheritDoc}
inherited
-
visitExprType(
ExprTypeContext ctx) → T? -
The default implementation returns the result of calling
visitChildren
onctx
.override -
visitFloatType(
FloatTypeContext ctx) → T? -
The default implementation returns the result of calling
visitChildren
onctx
.override -
visitFuncAnn(
FuncAnnContext ctx) → T? -
The default implementation returns the result of calling
visitChildren
onctx
.override -
visitFuncType(
FuncTypeContext ctx) → T? -
The default implementation returns the result of calling
visitChildren
onctx
.override -
visitId(
IdContext ctx) → T? -
The default implementation returns the result of calling
visitChildren
onctx
.override -
visitIdType(
IdTypeContext ctx) → T? -
The default implementation returns the result of calling
visitChildren
onctx
.override -
visitImp(
ImpContext ctx) → T? -
The default implementation returns the result of calling
visitChildren
onctx
.override -
visitImportPart(
ImportPartContext ctx) → T? -
The default implementation returns the result of calling
visitChildren
onctx
.override -
visitIntType(
IntTypeContext ctx) → T? -
The default implementation returns the result of calling
visitChildren
onctx
.override -
visitMethType(
MethTypeContext ctx) → T? -
The default implementation returns the result of calling
visitChildren
onctx
.override -
visitNatType(
NatTypeContext ctx) → T? -
The default implementation returns the result of calling
visitChildren
onctx
.override -
visitNull(
NullContext ctx) → T? -
The default implementation returns the result of calling
visitChildren
onctx
.override -
visitNumberType(
NumberTypeContext ctx) → T? -
The default implementation returns the result of calling
visitChildren
onctx
.override -
visitOptType(
OptTypeContext ctx) → T? -
The default implementation returns the result of calling
visitChildren
onctx
.override -
visitPairType(
PairTypeContext ctx) → T? -
The default implementation returns the result of calling
visitChildren
onctx
.override -
visitPrimType(
PrimTypeContext ctx) → T? -
The default implementation returns the result of calling
visitChildren
onctx
.override -
visitPrincipalType(
PrincipalTypeContext ctx) → T? -
The default implementation returns the result of calling
visitChildren
onctx
.override -
visitProg(
ProgContext ctx) → T? -
The default implementation returns the result of calling
visitChildren
onctx
.override -
visitRecordType(
RecordTypeContext ctx) → T? -
The default implementation returns the result of calling
visitChildren
onctx
.override -
visitRefType(
RefTypeContext ctx) → T? -
The default implementation returns the result of calling
visitChildren
onctx
.override -
visitReservedType(
ReservedTypeContext ctx) → T? -
The default implementation returns the result of calling
visitChildren
onctx
.override -
visitTerminal(
TerminalNode node) → T? -
{@inheritDoc}
inherited
-
visitTextType(
TextTypeContext ctx) → T? -
The default implementation returns the result of calling
visitChildren
onctx
.override -
visitTupleType(
TupleTypeContext ctx) → T? -
The default implementation returns the result of calling
visitChildren
onctx
.override -
visitVariantType(
VariantTypeContext ctx) → T? -
The default implementation returns the result of calling
visitChildren
onctx
.override -
visitVecType(
VecTypeContext ctx) → T? -
The default implementation returns the result of calling
visitChildren
onctx
.override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited