T - The return type of the visit operation. Use Void for
operations with no return type.public class GraqlTemplateBaseVisitor<T> extends org.antlr.v4.runtime.tree.AbstractParseTreeVisitor<T> implements GraqlTemplateVisitor<T>
GraqlTemplateVisitor,
which can be extended to create a visitor which only needs to handle a subset
of the available methods.| Constructor and Description |
|---|
GraqlTemplateBaseVisitor() |
aggregateResult, defaultResult, shouldVisitNextChild, visit, visitChildren, visitErrorNode, visitTerminalpublic T visitTemplate(GraqlTemplateParser.TemplateContext ctx)
GraqlTemplateParser.template().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitTemplate in interface GraqlTemplateVisitor<T>ctx - the parse treepublic T visitBlock(GraqlTemplateParser.BlockContext ctx)
GraqlTemplateParser.block().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitBlock in interface GraqlTemplateVisitor<T>ctx - the parse treepublic T visitBlockContents(GraqlTemplateParser.BlockContentsContext ctx)
GraqlTemplateParser.blockContents().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitBlockContents in interface GraqlTemplateVisitor<T>ctx - the parse treepublic T visitStatement(GraqlTemplateParser.StatementContext ctx)
GraqlTemplateParser.statement().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitStatement in interface GraqlTemplateVisitor<T>ctx - the parse treepublic T visitForInStatement(GraqlTemplateParser.ForInStatementContext ctx)
GraqlTemplateParser.forInStatement().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitForInStatement in interface GraqlTemplateVisitor<T>ctx - the parse treepublic T visitForEachStatement(GraqlTemplateParser.ForEachStatementContext ctx)
GraqlTemplateParser.forEachStatement().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitForEachStatement in interface GraqlTemplateVisitor<T>ctx - the parse treepublic T visitIfStatement(GraqlTemplateParser.IfStatementContext ctx)
GraqlTemplateParser.ifStatement().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitIfStatement in interface GraqlTemplateVisitor<T>ctx - the parse treepublic T visitIfPartial(GraqlTemplateParser.IfPartialContext ctx)
GraqlTemplateParser.ifPartial().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitIfPartial in interface GraqlTemplateVisitor<T>ctx - the parse treepublic T visitElseIfPartial(GraqlTemplateParser.ElseIfPartialContext ctx)
GraqlTemplateParser.elseIfPartial().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitElseIfPartial in interface GraqlTemplateVisitor<T>ctx - the parse treepublic T visitElsePartial(GraqlTemplateParser.ElsePartialContext ctx)
GraqlTemplateParser.elsePartial().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitElsePartial in interface GraqlTemplateVisitor<T>ctx - the parse treepublic T visitExpression(GraqlTemplateParser.ExpressionContext ctx)
GraqlTemplateParser.expression().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitExpression in interface GraqlTemplateVisitor<T>ctx - the parse treepublic T visitNumber(GraqlTemplateParser.NumberContext ctx)
GraqlTemplateParser.number().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitNumber in interface GraqlTemplateVisitor<T>ctx - the parse treepublic T visitInt_(GraqlTemplateParser.Int_Context ctx)
GraqlTemplateParser.int_().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitInt_ in interface GraqlTemplateVisitor<T>ctx - the parse treepublic T visitDouble_(GraqlTemplateParser.Double_Context ctx)
GraqlTemplateParser.double_().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitDouble_ in interface GraqlTemplateVisitor<T>ctx - the parse treepublic T visitString(GraqlTemplateParser.StringContext ctx)
GraqlTemplateParser.string().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitString in interface GraqlTemplateVisitor<T>ctx - the parse treepublic T visitList(GraqlTemplateParser.ListContext ctx)
GraqlTemplateParser.list().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitList in interface GraqlTemplateVisitor<T>ctx - the parse treepublic T visitNil(GraqlTemplateParser.NilContext ctx)
GraqlTemplateParser.nil().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitNil in interface GraqlTemplateVisitor<T>ctx - the parse treepublic T visitGroupExpression(GraqlTemplateParser.GroupExpressionContext ctx)
groupExpression
labeled alternative in GraqlTemplateParser.bool().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitGroupExpression in interface GraqlTemplateVisitor<T>ctx - the parse treepublic T visitOrExpression(GraqlTemplateParser.OrExpressionContext ctx)
orExpression
labeled alternative in GraqlTemplateParser.bool().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitOrExpression in interface GraqlTemplateVisitor<T>ctx - the parse treepublic T visitEqExpression(GraqlTemplateParser.EqExpressionContext ctx)
eqExpression
labeled alternative in GraqlTemplateParser.bool().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitEqExpression in interface GraqlTemplateVisitor<T>ctx - the parse treepublic T visitAndExpression(GraqlTemplateParser.AndExpressionContext ctx)
andExpression
labeled alternative in GraqlTemplateParser.bool().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitAndExpression in interface GraqlTemplateVisitor<T>ctx - the parse treepublic T visitGreaterExpression(GraqlTemplateParser.GreaterExpressionContext ctx)
greaterExpression
labeled alternative in GraqlTemplateParser.bool().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitGreaterExpression in interface GraqlTemplateVisitor<T>ctx - the parse treepublic T visitLessEqExpression(GraqlTemplateParser.LessEqExpressionContext ctx)
lessEqExpression
labeled alternative in GraqlTemplateParser.bool().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitLessEqExpression in interface GraqlTemplateVisitor<T>ctx - the parse treepublic T visitNotEqExpression(GraqlTemplateParser.NotEqExpressionContext ctx)
notEqExpression
labeled alternative in GraqlTemplateParser.bool().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitNotEqExpression in interface GraqlTemplateVisitor<T>ctx - the parse treepublic T visitLessExpression(GraqlTemplateParser.LessExpressionContext ctx)
lessExpression
labeled alternative in GraqlTemplateParser.bool().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitLessExpression in interface GraqlTemplateVisitor<T>ctx - the parse treepublic T visitNotExpression(GraqlTemplateParser.NotExpressionContext ctx)
notExpression
labeled alternative in GraqlTemplateParser.bool().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitNotExpression in interface GraqlTemplateVisitor<T>ctx - the parse treepublic T visitGreaterEqExpression(GraqlTemplateParser.GreaterEqExpressionContext ctx)
greaterEqExpression
labeled alternative in GraqlTemplateParser.bool().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitGreaterEqExpression in interface GraqlTemplateVisitor<T>ctx - the parse treepublic T visitBooleanExpression(GraqlTemplateParser.BooleanExpressionContext ctx)
booleanExpression
labeled alternative in GraqlTemplateParser.bool().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitBooleanExpression in interface GraqlTemplateVisitor<T>ctx - the parse treepublic T visitBooleanConstant(GraqlTemplateParser.BooleanConstantContext ctx)
booleanConstant
labeled alternative in GraqlTemplateParser.bool().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitBooleanConstant in interface GraqlTemplateVisitor<T>ctx - the parse treepublic T visitEscapedExpression(GraqlTemplateParser.EscapedExpressionContext ctx)
GraqlTemplateParser.escapedExpression().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitEscapedExpression in interface GraqlTemplateVisitor<T>ctx - the parse treepublic T visitIdExpression(GraqlTemplateParser.IdExpressionContext ctx)
idExpression
labeled alternative in GraqlTemplateParser.untypedExpression().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitIdExpression in interface GraqlTemplateVisitor<T>ctx - the parse treepublic T visitMacroExpression(GraqlTemplateParser.MacroExpressionContext ctx)
macroExpression
labeled alternative in GraqlTemplateParser.untypedExpression().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitMacroExpression in interface GraqlTemplateVisitor<T>ctx - the parse treepublic T visitMapAccessor(GraqlTemplateParser.MapAccessorContext ctx)
mapAccessor
labeled alternative in GraqlTemplateParser.accessor().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitMapAccessor in interface GraqlTemplateVisitor<T>ctx - the parse treepublic T visitListAccessor(GraqlTemplateParser.ListAccessorContext ctx)
listAccessor
labeled alternative in GraqlTemplateParser.accessor().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitListAccessor in interface GraqlTemplateVisitor<T>ctx - the parse treepublic T visitId(GraqlTemplateParser.IdContext ctx)
GraqlTemplateParser.id().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitId in interface GraqlTemplateVisitor<T>ctx - the parse treepublic T visitVarResolved(GraqlTemplateParser.VarResolvedContext ctx)
varResolved
labeled alternative in GraqlTemplateParser.var().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitVarResolved in interface GraqlTemplateVisitor<T>ctx - the parse treepublic T visitVarLiteral(GraqlTemplateParser.VarLiteralContext ctx)
varLiteral
labeled alternative in GraqlTemplateParser.var().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitVarLiteral in interface GraqlTemplateVisitor<T>ctx - the parse treepublic T visitKeyword(GraqlTemplateParser.KeywordContext ctx)
GraqlTemplateParser.keyword().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitKeyword in interface GraqlTemplateVisitor<T>ctx - the parse treeCopyright © 2017 Grakn Labs Ltd. All rights reserved.