T - The return type of the visit operation. Use Void for
operations with no return type.public class GraqlBaseVisitor<T> extends org.antlr.v4.runtime.tree.AbstractParseTreeVisitor<T> implements GraqlVisitor<T>
GraqlVisitor,
which can be extended to create a visitor which only needs to handle a subset
of the available methods.| Constructor and Description |
|---|
GraqlBaseVisitor() |
aggregateResult, defaultResult, shouldVisitNextChild, visit, visitChildren, visitErrorNode, visitTerminalpublic T visitQueryEOF(GraqlParser.QueryEOFContext ctx)
GraqlParser.queryEOF().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitQueryEOF in interface GraqlVisitor<T>ctx - the parse treepublic T visitQuery(GraqlParser.QueryContext ctx)
GraqlParser.query().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitQuery in interface GraqlVisitor<T>ctx - the parse treepublic T visitMatchEOF(GraqlParser.MatchEOFContext ctx)
GraqlParser.matchEOF().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitMatchEOF in interface GraqlVisitor<T>ctx - the parse treepublic T visitAskEOF(GraqlParser.AskEOFContext ctx)
GraqlParser.askEOF().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitAskEOF in interface GraqlVisitor<T>ctx - the parse treepublic T visitInsertEOF(GraqlParser.InsertEOFContext ctx)
GraqlParser.insertEOF().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitInsertEOF in interface GraqlVisitor<T>ctx - the parse treepublic T visitDeleteEOF(GraqlParser.DeleteEOFContext ctx)
GraqlParser.deleteEOF().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitDeleteEOF in interface GraqlVisitor<T>ctx - the parse treepublic T visitAggregateEOF(GraqlParser.AggregateEOFContext ctx)
GraqlParser.aggregateEOF().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitAggregateEOF in interface GraqlVisitor<T>ctx - the parse treepublic T visitComputeEOF(GraqlParser.ComputeEOFContext ctx)
GraqlParser.computeEOF().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitComputeEOF in interface GraqlVisitor<T>ctx - the parse treepublic T visitMatchBase(GraqlParser.MatchBaseContext ctx)
matchBase
labeled alternative in GraqlParser.matchQuery().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitMatchBase in interface GraqlVisitor<T>ctx - the parse treepublic T visitMatchSelect(GraqlParser.MatchSelectContext ctx)
matchSelect
labeled alternative in GraqlParser.matchQuery().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitMatchSelect in interface GraqlVisitor<T>ctx - the parse treepublic T visitMatchOffset(GraqlParser.MatchOffsetContext ctx)
matchOffset
labeled alternative in GraqlParser.matchQuery().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitMatchOffset in interface GraqlVisitor<T>ctx - the parse treepublic T visitMatchOrderBy(GraqlParser.MatchOrderByContext ctx)
matchOrderBy
labeled alternative in GraqlParser.matchQuery().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitMatchOrderBy in interface GraqlVisitor<T>ctx - the parse treepublic T visitMatchLimit(GraqlParser.MatchLimitContext ctx)
matchLimit
labeled alternative in GraqlParser.matchQuery().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitMatchLimit in interface GraqlVisitor<T>ctx - the parse treepublic T visitMatchDistinct(GraqlParser.MatchDistinctContext ctx)
matchDistinct
labeled alternative in GraqlParser.matchQuery().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitMatchDistinct in interface GraqlVisitor<T>ctx - the parse treepublic T visitAskQuery(GraqlParser.AskQueryContext ctx)
GraqlParser.askQuery().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitAskQuery in interface GraqlVisitor<T>ctx - the parse treepublic T visitInsertQuery(GraqlParser.InsertQueryContext ctx)
GraqlParser.insertQuery().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitInsertQuery in interface GraqlVisitor<T>ctx - the parse treepublic T visitDeleteQuery(GraqlParser.DeleteQueryContext ctx)
GraqlParser.deleteQuery().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitDeleteQuery in interface GraqlVisitor<T>ctx - the parse treepublic T visitAggregateQuery(GraqlParser.AggregateQueryContext ctx)
GraqlParser.aggregateQuery().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitAggregateQuery in interface GraqlVisitor<T>ctx - the parse treepublic T visitComputeQuery(GraqlParser.ComputeQueryContext ctx)
GraqlParser.computeQuery().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitComputeQuery in interface GraqlVisitor<T>ctx - the parse treepublic T visitStatTypes(GraqlParser.StatTypesContext ctx)
GraqlParser.statTypes().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitStatTypes in interface GraqlVisitor<T>ctx - the parse treepublic T visitSubgraph(GraqlParser.SubgraphContext ctx)
GraqlParser.subgraph().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitSubgraph in interface GraqlVisitor<T>ctx - the parse treepublic T visitIdList(GraqlParser.IdListContext ctx)
GraqlParser.idList().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitIdList in interface GraqlVisitor<T>ctx - the parse treepublic T visitCustomAgg(GraqlParser.CustomAggContext ctx)
customAgg
labeled alternative in GraqlParser.aggregate().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitCustomAgg in interface GraqlVisitor<T>ctx - the parse treepublic T visitSelectAgg(GraqlParser.SelectAggContext ctx)
selectAgg
labeled alternative in GraqlParser.aggregate().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitSelectAgg in interface GraqlVisitor<T>ctx - the parse treepublic T visitVariableArgument(GraqlParser.VariableArgumentContext ctx)
variableArgument
labeled alternative in GraqlParser.argument().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitVariableArgument in interface GraqlVisitor<T>ctx - the parse treepublic T visitAggregateArgument(GraqlParser.AggregateArgumentContext ctx)
aggregateArgument
labeled alternative in GraqlParser.argument().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitAggregateArgument in interface GraqlVisitor<T>ctx - the parse treepublic T visitNamedAgg(GraqlParser.NamedAggContext ctx)
GraqlParser.namedAgg().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitNamedAgg in interface GraqlVisitor<T>ctx - the parse treepublic T visitPatterns(GraqlParser.PatternsContext ctx)
GraqlParser.patterns().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitPatterns in interface GraqlVisitor<T>ctx - the parse treepublic T visitVarPatternCase(GraqlParser.VarPatternCaseContext ctx)
varPatternCase
labeled alternative in GraqlParser.pattern().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitVarPatternCase in interface GraqlVisitor<T>ctx - the parse treepublic T visitAndPattern(GraqlParser.AndPatternContext ctx)
andPattern
labeled alternative in GraqlParser.pattern().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitAndPattern in interface GraqlVisitor<T>ctx - the parse treepublic T visitOrPattern(GraqlParser.OrPatternContext ctx)
orPattern
labeled alternative in GraqlParser.pattern().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitOrPattern in interface GraqlVisitor<T>ctx - the parse treepublic T visitVarPatterns(GraqlParser.VarPatternsContext ctx)
GraqlParser.varPatterns().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitVarPatterns in interface GraqlVisitor<T>ctx - the parse treepublic T visitVarPattern(GraqlParser.VarPatternContext ctx)
GraqlParser.varPattern().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitVarPattern in interface GraqlVisitor<T>ctx - the parse treepublic T visitIsa(GraqlParser.IsaContext ctx)
isa
labeled alternative in GraqlParser.property().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitIsa in interface GraqlVisitor<T>ctx - the parse treepublic T visitSub(GraqlParser.SubContext ctx)
sub
labeled alternative in GraqlParser.property().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitSub in interface GraqlVisitor<T>ctx - the parse treepublic T visitHasRole(GraqlParser.HasRoleContext ctx)
hasRole
labeled alternative in GraqlParser.property().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitHasRole in interface GraqlVisitor<T>ctx - the parse treepublic T visitPlaysRole(GraqlParser.PlaysRoleContext ctx)
playsRole
labeled alternative in GraqlParser.property().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitPlaysRole in interface GraqlVisitor<T>ctx - the parse treepublic T visitHasScope(GraqlParser.HasScopeContext ctx)
hasScope
labeled alternative in GraqlParser.property().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitHasScope in interface GraqlVisitor<T>ctx - the parse treepublic T visitPropId(GraqlParser.PropIdContext ctx)
propId
labeled alternative in GraqlParser.property().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitPropId in interface GraqlVisitor<T>ctx - the parse treepublic T visitPropValue(GraqlParser.PropValueContext ctx)
propValue
labeled alternative in GraqlParser.property().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitPropValue in interface GraqlVisitor<T>ctx - the parse treepublic T visitPropLhs(GraqlParser.PropLhsContext ctx)
propLhs
labeled alternative in GraqlParser.property().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitPropLhs in interface GraqlVisitor<T>ctx - the parse treepublic T visitPropRhs(GraqlParser.PropRhsContext ctx)
propRhs
labeled alternative in GraqlParser.property().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitPropRhs in interface GraqlVisitor<T>ctx - the parse treepublic T visitPropHas(GraqlParser.PropHasContext ctx)
propHas
labeled alternative in GraqlParser.property().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitPropHas in interface GraqlVisitor<T>ctx - the parse treepublic T visitPropResource(GraqlParser.PropResourceContext ctx)
propResource
labeled alternative in GraqlParser.property().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitPropResource in interface GraqlVisitor<T>ctx - the parse treepublic T visitPropRel(GraqlParser.PropRelContext ctx)
propRel
labeled alternative in GraqlParser.property().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitPropRel in interface GraqlVisitor<T>ctx - the parse treepublic T visitIsAbstract(GraqlParser.IsAbstractContext ctx)
isAbstract
labeled alternative in GraqlParser.property().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitIsAbstract in interface GraqlVisitor<T>ctx - the parse treepublic T visitPropDatatype(GraqlParser.PropDatatypeContext ctx)
propDatatype
labeled alternative in GraqlParser.property().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitPropDatatype in interface GraqlVisitor<T>ctx - the parse treepublic T visitPropRegex(GraqlParser.PropRegexContext ctx)
propRegex
labeled alternative in GraqlParser.property().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitPropRegex in interface GraqlVisitor<T>ctx - the parse treepublic T visitCasting(GraqlParser.CastingContext ctx)
GraqlParser.casting().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitCasting in interface GraqlVisitor<T>ctx - the parse treepublic T visitVariable(GraqlParser.VariableContext ctx)
GraqlParser.variable().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitVariable in interface GraqlVisitor<T>ctx - the parse treepublic T visitPredicateEq(GraqlParser.PredicateEqContext ctx)
predicateEq
labeled alternative in GraqlParser.predicate().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitPredicateEq in interface GraqlVisitor<T>ctx - the parse treepublic T visitPredicateAnd(GraqlParser.PredicateAndContext ctx)
predicateAnd
labeled alternative in GraqlParser.predicate().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitPredicateAnd in interface GraqlVisitor<T>ctx - the parse treepublic T visitPredicateGte(GraqlParser.PredicateGteContext ctx)
predicateGte
labeled alternative in GraqlParser.predicate().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitPredicateGte in interface GraqlVisitor<T>ctx - the parse treepublic T visitPredicateNeq(GraqlParser.PredicateNeqContext ctx)
predicateNeq
labeled alternative in GraqlParser.predicate().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitPredicateNeq in interface GraqlVisitor<T>ctx - the parse treepublic T visitPredicateRegex(GraqlParser.PredicateRegexContext ctx)
predicateRegex
labeled alternative in GraqlParser.predicate().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitPredicateRegex in interface GraqlVisitor<T>ctx - the parse treepublic T visitPredicateContains(GraqlParser.PredicateContainsContext ctx)
predicateContains
labeled alternative in GraqlParser.predicate().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitPredicateContains in interface GraqlVisitor<T>ctx - the parse treepublic T visitPredicateGt(GraqlParser.PredicateGtContext ctx)
predicateGt
labeled alternative in GraqlParser.predicate().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitPredicateGt in interface GraqlVisitor<T>ctx - the parse treepublic T visitPredicateLte(GraqlParser.PredicateLteContext ctx)
predicateLte
labeled alternative in GraqlParser.predicate().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitPredicateLte in interface GraqlVisitor<T>ctx - the parse treepublic T visitPredicateParens(GraqlParser.PredicateParensContext ctx)
predicateParens
labeled alternative in GraqlParser.predicate().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitPredicateParens in interface GraqlVisitor<T>ctx - the parse treepublic T visitPredicateOr(GraqlParser.PredicateOrContext ctx)
predicateOr
labeled alternative in GraqlParser.predicate().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitPredicateOr in interface GraqlVisitor<T>ctx - the parse treepublic T visitPredicateLt(GraqlParser.PredicateLtContext ctx)
predicateLt
labeled alternative in GraqlParser.predicate().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitPredicateLt in interface GraqlVisitor<T>ctx - the parse treepublic T visitValueString(GraqlParser.ValueStringContext ctx)
valueString
labeled alternative in GraqlParser.value().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitValueString in interface GraqlVisitor<T>ctx - the parse treepublic T visitValueInteger(GraqlParser.ValueIntegerContext ctx)
valueInteger
labeled alternative in GraqlParser.value().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitValueInteger in interface GraqlVisitor<T>ctx - the parse treepublic T visitValueReal(GraqlParser.ValueRealContext ctx)
valueReal
labeled alternative in GraqlParser.value().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitValueReal in interface GraqlVisitor<T>ctx - the parse treepublic T visitValueBoolean(GraqlParser.ValueBooleanContext ctx)
valueBoolean
labeled alternative in GraqlParser.value().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitValueBoolean in interface GraqlVisitor<T>ctx - the parse treepublic T visitInsert(GraqlParser.InsertContext ctx)
GraqlParser.insert().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitInsert in interface GraqlVisitor<T>ctx - the parse treepublic T visitPatternSep(GraqlParser.PatternSepContext ctx)
GraqlParser.patternSep().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitPatternSep in interface GraqlVisitor<T>ctx - the parse treepublic T visitBatchPattern(GraqlParser.BatchPatternContext ctx)
GraqlParser.batchPattern().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitBatchPattern in interface GraqlVisitor<T>ctx - the parse treepublic T visitId(GraqlParser.IdContext ctx)
GraqlParser.id().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitId in interface GraqlVisitor<T>ctx - the parse treeCopyright © 2016 Grakn Labs Ltd. All rights reserved.