T - The return type of the visit operation. Use Void for
operations with no return type.public class GremlinBaseVisitor<T> extends org.antlr.v4.runtime.tree.AbstractParseTreeVisitor<T> implements GremlinVisitor<T>
GremlinVisitor,
which can be extended to create a visitor which only needs to handle a subset
of the available methods.| Constructor and Description |
|---|
GremlinBaseVisitor() |
| Modifier and Type | Method and Description |
|---|---|
T |
visitCall(GremlinParser.CallContext ctx)
Visit a parse tree produced by
GremlinParser.call(). |
T |
visitIdExpr(GremlinParser.IdExprContext ctx)
Visit a parse tree produced by the
idExpr
labeled alternative in GremlinParser.expr(). |
T |
visitIds(GremlinParser.IdsContext ctx)
Visit a parse tree produced by
GremlinParser.ids(). |
T |
visitList(GremlinParser.ListContext ctx)
Visit a parse tree produced by
GremlinParser.list(). |
T |
visitListExpr(GremlinParser.ListExprContext ctx)
Visit a parse tree produced by the
listExpr
labeled alternative in GremlinParser.expr(). |
T |
visitMapEntry(GremlinParser.MapEntryContext ctx)
Visit a parse tree produced by
GremlinParser.mapEntry(). |
T |
visitMapExpr(GremlinParser.MapExprContext ctx)
Visit a parse tree produced by the
mapExpr
labeled alternative in GremlinParser.expr(). |
T |
visitMethodExpr(GremlinParser.MethodExprContext ctx)
Visit a parse tree produced by the
methodExpr
labeled alternative in GremlinParser.expr(). |
T |
visitNegExpr(GremlinParser.NegExprContext ctx)
Visit a parse tree produced by the
negExpr
labeled alternative in GremlinParser.expr(). |
T |
visitSquigglyExpr(GremlinParser.SquigglyExprContext ctx)
Visit a parse tree produced by the
squigglyExpr
labeled alternative in GremlinParser.expr(). |
T |
visitStep(GremlinParser.StepContext ctx)
Visit a parse tree produced by
GremlinParser.step(). |
T |
visitStepExpr(GremlinParser.StepExprContext ctx)
Visit a parse tree produced by the
stepExpr
labeled alternative in GremlinParser.expr(). |
T |
visitTraversal(GremlinParser.TraversalContext ctx)
Visit a parse tree produced by
GremlinParser.traversal(). |
aggregateResult, defaultResult, shouldVisitNextChild, visit, visitChildren, visitErrorNode, visitTerminalpublic T visitTraversal(GremlinParser.TraversalContext ctx)
GremlinParser.traversal().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitTraversal in interface GremlinVisitor<T>ctx - the parse treepublic T visitIdExpr(GremlinParser.IdExprContext ctx)
idExpr
labeled alternative in GremlinParser.expr().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitIdExpr in interface GremlinVisitor<T>ctx - the parse treepublic T visitListExpr(GremlinParser.ListExprContext ctx)
listExpr
labeled alternative in GremlinParser.expr().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitListExpr in interface GremlinVisitor<T>ctx - the parse treepublic T visitStepExpr(GremlinParser.StepExprContext ctx)
stepExpr
labeled alternative in GremlinParser.expr().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitStepExpr in interface GremlinVisitor<T>ctx - the parse treepublic T visitMethodExpr(GremlinParser.MethodExprContext ctx)
methodExpr
labeled alternative in GremlinParser.expr().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitMethodExpr in interface GremlinVisitor<T>ctx - the parse treepublic T visitNegExpr(GremlinParser.NegExprContext ctx)
negExpr
labeled alternative in GremlinParser.expr().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitNegExpr in interface GremlinVisitor<T>ctx - the parse treepublic T visitSquigglyExpr(GremlinParser.SquigglyExprContext ctx)
squigglyExpr
labeled alternative in GremlinParser.expr().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitSquigglyExpr in interface GremlinVisitor<T>ctx - the parse treepublic T visitMapExpr(GremlinParser.MapExprContext ctx)
mapExpr
labeled alternative in GremlinParser.expr().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitMapExpr in interface GremlinVisitor<T>ctx - the parse treepublic T visitMapEntry(GremlinParser.MapEntryContext ctx)
GremlinParser.mapEntry().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitMapEntry in interface GremlinVisitor<T>ctx - the parse treepublic T visitStep(GremlinParser.StepContext ctx)
GremlinParser.step().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitStep in interface GremlinVisitor<T>ctx - the parse treepublic T visitCall(GremlinParser.CallContext ctx)
GremlinParser.call().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitCall in interface GremlinVisitor<T>ctx - the parse treepublic T visitList(GremlinParser.ListContext ctx)
GremlinParser.list().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitList in interface GremlinVisitor<T>ctx - the parse treepublic T visitIds(GremlinParser.IdsContext ctx)
GremlinParser.ids().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitIds in interface GremlinVisitor<T>ctx - the parse treeCopyright © 2017 Grakn Labs Ltd. All rights reserved.