Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
graphql.language.NodeVisitorStub Maven / Gradle / Ivy
package graphql.language;
import graphql.PublicApi;
import graphql.util.TraversalControl;
import graphql.util.TraverserContext;
/**
* Convenient implementation of {@link NodeVisitor} for easy subclassing methods handling different types of Nodes in one method.
*/
@PublicApi
public class NodeVisitorStub implements NodeVisitor {
@Override
public TraversalControl visitArgument(Argument node, TraverserContext context) {
return visitNode(node, context);
}
@Override
public TraversalControl visitArrayValue(ArrayValue node, TraverserContext context) {
return visitValue(node, context);
}
@Override
public TraversalControl visitBooleanValue(BooleanValue node, TraverserContext context) {
return visitValue(node, context);
}
@Override
public TraversalControl visitDirective(Directive node, TraverserContext context) {
return visitNode(node, context);
}
@Override
public TraversalControl visitDirectiveDefinition(DirectiveDefinition node, TraverserContext context) {
return visitDefinition(node, context);
}
@Override
public TraversalControl visitDirectiveLocation(DirectiveLocation node, TraverserContext context) {
return visitNode(node, context);
}
@Override
public TraversalControl visitDocument(Document node, TraverserContext context) {
return visitNode(node, context);
}
@Override
public TraversalControl visitEnumTypeDefinition(EnumTypeDefinition node, TraverserContext context) {
return visitTypeDefinition(node, context);
}
@Override
public TraversalControl visitEnumValue(EnumValue node, TraverserContext context) {
return visitValue(node, context);
}
@Override
public TraversalControl visitEnumValueDefinition(EnumValueDefinition node, TraverserContext context) {
return visitNode(node, context);
}
@Override
public TraversalControl visitField(Field node, TraverserContext context) {
return visitSelection(node, context);
}
@Override
public TraversalControl visitFieldDefinition(FieldDefinition node, TraverserContext context) {
return visitNode(node, context);
}
@Override
public TraversalControl visitFloatValue(FloatValue node, TraverserContext context) {
return visitValue(node, context);
}
@Override
public TraversalControl visitFragmentDefinition(FragmentDefinition node, TraverserContext context) {
return visitDefinition(node, context);
}
@Override
public TraversalControl visitFragmentSpread(FragmentSpread node, TraverserContext context) {
return visitSelection(node, context);
}
@Override
public TraversalControl visitInlineFragment(InlineFragment node, TraverserContext context) {
return visitSelection(node, context);
}
@Override
public TraversalControl visitInputObjectTypeDefinition(InputObjectTypeDefinition node, TraverserContext context) {
return visitTypeDefinition(node, context);
}
@Override
public TraversalControl visitInputValueDefinition(InputValueDefinition node, TraverserContext context) {
return visitNode(node, context);
}
@Override
public TraversalControl visitIntValue(IntValue node, TraverserContext context) {
return visitValue(node, context);
}
@Override
public TraversalControl visitInterfaceTypeDefinition(InterfaceTypeDefinition node, TraverserContext context) {
return visitTypeDefinition(node, context);
}
@Override
public TraversalControl visitListType(ListType node, TraverserContext context) {
return visitType(node, context);
}
@Override
public TraversalControl visitNonNullType(NonNullType node, TraverserContext context) {
return visitType(node, context);
}
@Override
public TraversalControl visitNullValue(NullValue node, TraverserContext context) {
return visitValue(node, context);
}
@Override
public TraversalControl visitObjectField(ObjectField node, TraverserContext context) {
return visitNode(node, context);
}
@Override
public TraversalControl visitObjectTypeDefinition(ObjectTypeDefinition node, TraverserContext context) {
return visitTypeDefinition(node, context);
}
@Override
public TraversalControl visitObjectValue(ObjectValue node, TraverserContext context) {
return visitValue(node, context);
}
@Override
public TraversalControl visitOperationDefinition(OperationDefinition node, TraverserContext context) {
return visitDefinition(node, context);
}
@Override
public TraversalControl visitOperationTypeDefinition(OperationTypeDefinition node, TraverserContext context) {
return visitNode(node, context);
}
@Override
public TraversalControl visitScalarTypeDefinition(ScalarTypeDefinition node, TraverserContext context) {
return visitTypeDefinition(node, context);
}
@Override
public TraversalControl visitSchemaDefinition(SchemaDefinition node, TraverserContext context) {
return visitDefinition(node, context);
}
@Override
public TraversalControl visitSelectionSet(SelectionSet node, TraverserContext context) {
return visitNode(node, context);
}
@Override
public TraversalControl visitStringValue(StringValue node, TraverserContext context) {
return visitValue(node, context);
}
@Override
public TraversalControl visitTypeName(TypeName node, TraverserContext context) {
return visitType(node, context);
}
@Override
public TraversalControl visitUnionTypeDefinition(UnionTypeDefinition node, TraverserContext context) {
return visitTypeDefinition(node, context);
}
@Override
public TraversalControl visitVariableDefinition(VariableDefinition node, TraverserContext context) {
return visitNode(node, context);
}
@Override
public TraversalControl visitVariableReference(VariableReference node, TraverserContext context) {
return visitValue(node, context);
}
protected TraversalControl visitValue(Value> node, TraverserContext context) {
return visitNode(node, context);
}
protected TraversalControl visitDefinition(Definition> node, TraverserContext context) {
return visitNode(node, context);
}
protected TraversalControl visitTypeDefinition(TypeDefinition> node, TraverserContext context) {
return visitDefinition(node, context);
}
protected TraversalControl visitSelection(Selection> node, TraverserContext context) {
return visitNode(node, context);
}
protected TraversalControl visitType(Type> node, TraverserContext context) {
return visitNode(node, context);
}
protected TraversalControl visitNode(Node node, TraverserContext context) {
return TraversalControl.CONTINUE;
}
}