T
- The return type of the visit operation. Use Void
for
operations with no return type.public class GraphqlBaseVisitor<T> extends org.antlr.v4.runtime.tree.AbstractParseTreeVisitor<T> implements GraphqlVisitor<T>
GraphqlVisitor
,
which can be extended to create a visitor which only needs to handle a subset
of the available methods.Constructor and Description |
---|
GraphqlBaseVisitor() |
aggregateResult, defaultResult, shouldVisitNextChild, visit, visitChildren, visitErrorNode, visitTerminal
public T visitDocument(GraphqlParser.DocumentContext ctx)
GraphqlParser.document()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitDocument
in interface GraphqlVisitor<T>
ctx
- the parse treepublic T visitDefinition(GraphqlParser.DefinitionContext ctx)
GraphqlParser.definition()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitDefinition
in interface GraphqlVisitor<T>
ctx
- the parse treepublic T visitOperationDefinition(GraphqlParser.OperationDefinitionContext ctx)
GraphqlParser.operationDefinition()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitOperationDefinition
in interface GraphqlVisitor<T>
ctx
- the parse treepublic T visitOperationType(GraphqlParser.OperationTypeContext ctx)
GraphqlParser.operationType()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitOperationType
in interface GraphqlVisitor<T>
ctx
- the parse treepublic T visitVariableDefinitions(GraphqlParser.VariableDefinitionsContext ctx)
GraphqlParser.variableDefinitions()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitVariableDefinitions
in interface GraphqlVisitor<T>
ctx
- the parse treepublic T visitVariableDefinition(GraphqlParser.VariableDefinitionContext ctx)
GraphqlParser.variableDefinition()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitVariableDefinition
in interface GraphqlVisitor<T>
ctx
- the parse treepublic T visitVariable(GraphqlParser.VariableContext ctx)
GraphqlParser.variable()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitVariable
in interface GraphqlVisitor<T>
ctx
- the parse treepublic T visitDefaultValue(GraphqlParser.DefaultValueContext ctx)
GraphqlParser.defaultValue()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitDefaultValue
in interface GraphqlVisitor<T>
ctx
- the parse treepublic T visitSelectionSet(GraphqlParser.SelectionSetContext ctx)
GraphqlParser.selectionSet()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitSelectionSet
in interface GraphqlVisitor<T>
ctx
- the parse treepublic T visitSelection(GraphqlParser.SelectionContext ctx)
GraphqlParser.selection()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitSelection
in interface GraphqlVisitor<T>
ctx
- the parse treepublic T visitField(GraphqlParser.FieldContext ctx)
GraphqlParser.field()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitField
in interface GraphqlVisitor<T>
ctx
- the parse treepublic T visitAlias(GraphqlParser.AliasContext ctx)
GraphqlParser.alias()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitAlias
in interface GraphqlVisitor<T>
ctx
- the parse treepublic T visitArguments(GraphqlParser.ArgumentsContext ctx)
GraphqlParser.arguments()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitArguments
in interface GraphqlVisitor<T>
ctx
- the parse treepublic T visitArgument(GraphqlParser.ArgumentContext ctx)
GraphqlParser.argument()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitArgument
in interface GraphqlVisitor<T>
ctx
- the parse treepublic T visitFragmentSpread(GraphqlParser.FragmentSpreadContext ctx)
GraphqlParser.fragmentSpread()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitFragmentSpread
in interface GraphqlVisitor<T>
ctx
- the parse treepublic T visitInlineFragment(GraphqlParser.InlineFragmentContext ctx)
GraphqlParser.inlineFragment()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitInlineFragment
in interface GraphqlVisitor<T>
ctx
- the parse treepublic T visitFragmentDefinition(GraphqlParser.FragmentDefinitionContext ctx)
GraphqlParser.fragmentDefinition()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitFragmentDefinition
in interface GraphqlVisitor<T>
ctx
- the parse treepublic T visitFragmentName(GraphqlParser.FragmentNameContext ctx)
GraphqlParser.fragmentName()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitFragmentName
in interface GraphqlVisitor<T>
ctx
- the parse treepublic T visitTypeCondition(GraphqlParser.TypeConditionContext ctx)
GraphqlParser.typeCondition()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitTypeCondition
in interface GraphqlVisitor<T>
ctx
- the parse treepublic T visitValue(GraphqlParser.ValueContext ctx)
GraphqlParser.value()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitValue
in interface GraphqlVisitor<T>
ctx
- the parse treepublic T visitValueWithVariable(GraphqlParser.ValueWithVariableContext ctx)
GraphqlParser.valueWithVariable()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitValueWithVariable
in interface GraphqlVisitor<T>
ctx
- the parse treepublic T visitEnumValue(GraphqlParser.EnumValueContext ctx)
GraphqlParser.enumValue()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitEnumValue
in interface GraphqlVisitor<T>
ctx
- the parse treepublic T visitArrayValue(GraphqlParser.ArrayValueContext ctx)
GraphqlParser.arrayValue()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitArrayValue
in interface GraphqlVisitor<T>
ctx
- the parse treepublic T visitArrayValueWithVariable(GraphqlParser.ArrayValueWithVariableContext ctx)
GraphqlParser.arrayValueWithVariable()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitArrayValueWithVariable
in interface GraphqlVisitor<T>
ctx
- the parse treepublic T visitObjectValue(GraphqlParser.ObjectValueContext ctx)
GraphqlParser.objectValue()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitObjectValue
in interface GraphqlVisitor<T>
ctx
- the parse treepublic T visitObjectValueWithVariable(GraphqlParser.ObjectValueWithVariableContext ctx)
GraphqlParser.objectValueWithVariable()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitObjectValueWithVariable
in interface GraphqlVisitor<T>
ctx
- the parse treepublic T visitObjectField(GraphqlParser.ObjectFieldContext ctx)
GraphqlParser.objectField()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitObjectField
in interface GraphqlVisitor<T>
ctx
- the parse treepublic T visitObjectFieldWithVariable(GraphqlParser.ObjectFieldWithVariableContext ctx)
GraphqlParser.objectFieldWithVariable()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitObjectFieldWithVariable
in interface GraphqlVisitor<T>
ctx
- the parse treepublic T visitDirectives(GraphqlParser.DirectivesContext ctx)
GraphqlParser.directives()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitDirectives
in interface GraphqlVisitor<T>
ctx
- the parse treepublic T visitDirective(GraphqlParser.DirectiveContext ctx)
GraphqlParser.directive()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitDirective
in interface GraphqlVisitor<T>
ctx
- the parse treepublic T visitType(GraphqlParser.TypeContext ctx)
GraphqlParser.type()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitType
in interface GraphqlVisitor<T>
ctx
- the parse treepublic T visitTypeName(GraphqlParser.TypeNameContext ctx)
GraphqlParser.typeName()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitTypeName
in interface GraphqlVisitor<T>
ctx
- the parse treepublic T visitListType(GraphqlParser.ListTypeContext ctx)
GraphqlParser.listType()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitListType
in interface GraphqlVisitor<T>
ctx
- the parse treepublic T visitNonNullType(GraphqlParser.NonNullTypeContext ctx)
GraphqlParser.nonNullType()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitNonNullType
in interface GraphqlVisitor<T>
ctx
- the parse tree