PreVisitor class
Methods
aggregateResult (void aggregate , void nextResult )
→ void
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 ()
→ void
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 , void 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 )
→ void
{@inheritDoc}
inherited
visitActor (ActorContext ctx )
→ void
The default implementation returns the result of calling
visitChildren
on ctx
.
inherited
visitActorType (ActorTypeContext ctx )
→ void
The default implementation returns the result of calling
visitChildren
on ctx
.
inherited
visitBlobType (BlobTypeContext ctx )
→ void
The default implementation returns the result of calling
visitChildren
on ctx
.
inherited
visitBoolType (BoolTypeContext ctx )
→ void
The default implementation returns the result of calling
visitChildren
on ctx
.
inherited
visitChildren (RuleNode node )
→ void
{@inheritDoc}
inherited
visitDataType (DataTypeContext ctx )
→ void
The default implementation returns the result of calling
visitChildren
on ctx
.
inherited
visitDef (DefContext ctx )
→ void
The default implementation returns the result of calling
visitChildren on ctx
.
override
visitEmptyType (EmptyTypeContext ctx )
→ void
The default implementation returns the result of calling
visitChildren
on ctx
.
inherited
visitErrorNode (ErrorNode node )
→ void
{@inheritDoc}
inherited
visitExprType (ExprTypeContext ctx )
→ void
The default implementation returns the result of calling
visitChildren
on ctx
.
inherited
visitFloatType (FloatTypeContext ctx )
→ void
The default implementation returns the result of calling
visitChildren
on ctx
.
inherited
visitFuncAnn (FuncAnnContext ctx )
→ void
The default implementation returns the result of calling
visitChildren
on ctx
.
inherited
visitFuncType (FuncTypeContext ctx )
→ void
The default implementation returns the result of calling
visitChildren
on ctx
.
inherited
visitId (IdContext ctx )
→ void
The default implementation returns the result of calling
visitChildren
on ctx
.
inherited
visitIdType (IdTypeContext ctx )
→ void
The default implementation returns the result of calling
visitChildren
on ctx
.
inherited
visitImp (ImpContext ctx )
→ void
The default implementation returns the result of calling
visitChildren
on ctx
.
inherited
visitImportPart (ImportPartContext ctx )
→ void
The default implementation returns the result of calling
visitChildren
on ctx
.
inherited
visitIntType (IntTypeContext ctx )
→ void
The default implementation returns the result of calling
visitChildren
on ctx
.
inherited
visitMethType (MethTypeContext ctx )
→ void
The default implementation returns the result of calling
visitChildren
on ctx
.
inherited
visitNatType (NatTypeContext ctx )
→ void
The default implementation returns the result of calling
visitChildren
on ctx
.
inherited
visitNull (NullContext ctx )
→ void
The default implementation returns the result of calling
visitChildren
on ctx
.
inherited
visitNumberType (NumberTypeContext ctx )
→ void
The default implementation returns the result of calling
visitChildren
on ctx
.
inherited
visitOptType (OptTypeContext ctx )
→ void
The default implementation returns the result of calling
visitChildren on ctx
.
override
visitPairType (PairTypeContext ctx )
→ void
The default implementation returns the result of calling
visitChildren
on ctx
.
inherited
visitPrimType (PrimTypeContext ctx )
→ void
The default implementation returns the result of calling
visitChildren
on ctx
.
inherited
visitPrincipalType (PrincipalTypeContext ctx )
→ void
The default implementation returns the result of calling
visitChildren
on ctx
.
inherited
visitProg (ProgContext ctx )
→ void
The default implementation returns the result of calling
visitChildren
on ctx
.
inherited
visitRecordType (RecordTypeContext ctx )
→ void
The default implementation returns the result of calling
visitChildren on ctx
.
override
visitRefType (RefTypeContext ctx )
→ void
The default implementation returns the result of calling
visitChildren
on ctx
.
inherited
visitReservedType (ReservedTypeContext ctx )
→ void
The default implementation returns the result of calling
visitChildren
on ctx
.
inherited
visitTerminal (TerminalNode node )
→ void
{@inheritDoc}
inherited
visitTextType (TextTypeContext ctx )
→ void
The default implementation returns the result of calling
visitChildren
on ctx
.
inherited
visitTupleType (TupleTypeContext ctx )
→ void
The default implementation returns the result of calling
visitChildren
on ctx
.
inherited
visitVariantType (VariantTypeContext ctx )
→ void
The default implementation returns the result of calling
visitChildren on ctx
.
override
visitVecType (VecTypeContext ctx )
→ void
The default implementation returns the result of calling
visitChildren on ctx
.
override