Package graphql.language
Class NodeVisitorStub
- java.lang.Object
-
- graphql.language.NodeVisitorStub
-
- All Implemented Interfaces:
NodeVisitor
- Direct Known Subclasses:
NodeVisitorWithTypeTracking
@PublicApi public class NodeVisitorStub extends java.lang.Object implements NodeVisitor
Convenient implementation ofNodeVisitor
for easy subclassing methods handling different types of Nodes in one method.
-
-
Constructor Summary
Constructors Constructor Description NodeVisitorStub()
-
Method Summary
-
-
-
Method Detail
-
visitArgument
public TraversalControl visitArgument(Argument node, TraverserContext<Node> context)
- Specified by:
visitArgument
in interfaceNodeVisitor
-
visitArrayValue
public TraversalControl visitArrayValue(ArrayValue node, TraverserContext<Node> context)
- Specified by:
visitArrayValue
in interfaceNodeVisitor
-
visitBooleanValue
public TraversalControl visitBooleanValue(BooleanValue node, TraverserContext<Node> context)
- Specified by:
visitBooleanValue
in interfaceNodeVisitor
-
visitDirective
public TraversalControl visitDirective(Directive node, TraverserContext<Node> context)
- Specified by:
visitDirective
in interfaceNodeVisitor
-
visitDirectiveDefinition
public TraversalControl visitDirectiveDefinition(DirectiveDefinition node, TraverserContext<Node> context)
- Specified by:
visitDirectiveDefinition
in interfaceNodeVisitor
-
visitDirectiveLocation
public TraversalControl visitDirectiveLocation(DirectiveLocation node, TraverserContext<Node> context)
- Specified by:
visitDirectiveLocation
in interfaceNodeVisitor
-
visitDocument
public TraversalControl visitDocument(Document node, TraverserContext<Node> context)
- Specified by:
visitDocument
in interfaceNodeVisitor
-
visitEnumTypeDefinition
public TraversalControl visitEnumTypeDefinition(EnumTypeDefinition node, TraverserContext<Node> context)
- Specified by:
visitEnumTypeDefinition
in interfaceNodeVisitor
-
visitEnumValue
public TraversalControl visitEnumValue(EnumValue node, TraverserContext<Node> context)
- Specified by:
visitEnumValue
in interfaceNodeVisitor
-
visitEnumValueDefinition
public TraversalControl visitEnumValueDefinition(EnumValueDefinition node, TraverserContext<Node> context)
- Specified by:
visitEnumValueDefinition
in interfaceNodeVisitor
-
visitField
public TraversalControl visitField(Field node, TraverserContext<Node> context)
- Specified by:
visitField
in interfaceNodeVisitor
-
visitFieldDefinition
public TraversalControl visitFieldDefinition(FieldDefinition node, TraverserContext<Node> context)
- Specified by:
visitFieldDefinition
in interfaceNodeVisitor
-
visitFloatValue
public TraversalControl visitFloatValue(FloatValue node, TraverserContext<Node> context)
- Specified by:
visitFloatValue
in interfaceNodeVisitor
-
visitFragmentDefinition
public TraversalControl visitFragmentDefinition(FragmentDefinition node, TraverserContext<Node> context)
- Specified by:
visitFragmentDefinition
in interfaceNodeVisitor
-
visitFragmentSpread
public TraversalControl visitFragmentSpread(FragmentSpread node, TraverserContext<Node> context)
- Specified by:
visitFragmentSpread
in interfaceNodeVisitor
-
visitInlineFragment
public TraversalControl visitInlineFragment(InlineFragment node, TraverserContext<Node> context)
- Specified by:
visitInlineFragment
in interfaceNodeVisitor
-
visitInputObjectTypeDefinition
public TraversalControl visitInputObjectTypeDefinition(InputObjectTypeDefinition node, TraverserContext<Node> context)
- Specified by:
visitInputObjectTypeDefinition
in interfaceNodeVisitor
-
visitInputValueDefinition
public TraversalControl visitInputValueDefinition(InputValueDefinition node, TraverserContext<Node> context)
- Specified by:
visitInputValueDefinition
in interfaceNodeVisitor
-
visitIntValue
public TraversalControl visitIntValue(IntValue node, TraverserContext<Node> context)
- Specified by:
visitIntValue
in interfaceNodeVisitor
-
visitInterfaceTypeDefinition
public TraversalControl visitInterfaceTypeDefinition(InterfaceTypeDefinition node, TraverserContext<Node> context)
- Specified by:
visitInterfaceTypeDefinition
in interfaceNodeVisitor
-
visitListType
public TraversalControl visitListType(ListType node, TraverserContext<Node> context)
- Specified by:
visitListType
in interfaceNodeVisitor
-
visitNonNullType
public TraversalControl visitNonNullType(NonNullType node, TraverserContext<Node> context)
- Specified by:
visitNonNullType
in interfaceNodeVisitor
-
visitNullValue
public TraversalControl visitNullValue(NullValue node, TraverserContext<Node> context)
- Specified by:
visitNullValue
in interfaceNodeVisitor
-
visitObjectField
public TraversalControl visitObjectField(ObjectField node, TraverserContext<Node> context)
- Specified by:
visitObjectField
in interfaceNodeVisitor
-
visitObjectTypeDefinition
public TraversalControl visitObjectTypeDefinition(ObjectTypeDefinition node, TraverserContext<Node> context)
- Specified by:
visitObjectTypeDefinition
in interfaceNodeVisitor
-
visitObjectValue
public TraversalControl visitObjectValue(ObjectValue node, TraverserContext<Node> context)
- Specified by:
visitObjectValue
in interfaceNodeVisitor
-
visitOperationDefinition
public TraversalControl visitOperationDefinition(OperationDefinition node, TraverserContext<Node> context)
- Specified by:
visitOperationDefinition
in interfaceNodeVisitor
-
visitOperationTypeDefinition
public TraversalControl visitOperationTypeDefinition(OperationTypeDefinition node, TraverserContext<Node> context)
- Specified by:
visitOperationTypeDefinition
in interfaceNodeVisitor
-
visitScalarTypeDefinition
public TraversalControl visitScalarTypeDefinition(ScalarTypeDefinition node, TraverserContext<Node> context)
- Specified by:
visitScalarTypeDefinition
in interfaceNodeVisitor
-
visitSchemaDefinition
public TraversalControl visitSchemaDefinition(SchemaDefinition node, TraverserContext<Node> context)
- Specified by:
visitSchemaDefinition
in interfaceNodeVisitor
-
visitSelectionSet
public TraversalControl visitSelectionSet(SelectionSet node, TraverserContext<Node> context)
- Specified by:
visitSelectionSet
in interfaceNodeVisitor
-
visitStringValue
public TraversalControl visitStringValue(StringValue node, TraverserContext<Node> context)
- Specified by:
visitStringValue
in interfaceNodeVisitor
-
visitTypeName
public TraversalControl visitTypeName(TypeName node, TraverserContext<Node> context)
- Specified by:
visitTypeName
in interfaceNodeVisitor
-
visitUnionTypeDefinition
public TraversalControl visitUnionTypeDefinition(UnionTypeDefinition node, TraverserContext<Node> context)
- Specified by:
visitUnionTypeDefinition
in interfaceNodeVisitor
-
visitVariableDefinition
public TraversalControl visitVariableDefinition(VariableDefinition node, TraverserContext<Node> context)
- Specified by:
visitVariableDefinition
in interfaceNodeVisitor
-
visitVariableReference
public TraversalControl visitVariableReference(VariableReference node, TraverserContext<Node> context)
- Specified by:
visitVariableReference
in interfaceNodeVisitor
-
visitValue
protected TraversalControl visitValue(Value<?> node, TraverserContext<Node> context)
-
visitDefinition
protected TraversalControl visitDefinition(Definition<?> node, TraverserContext<Node> context)
-
visitTypeDefinition
protected TraversalControl visitTypeDefinition(TypeDefinition<?> node, TraverserContext<Node> context)
-
visitSelection
protected TraversalControl visitSelection(Selection<?> node, TraverserContext<Node> context)
-
visitType
protected TraversalControl visitType(Type<?> node, TraverserContext<Node> context)
-
visitNode
protected TraversalControl visitNode(Node node, TraverserContext<Node> context)
-
-