Package graphql.schema
Interface GraphQLSchemaElement
- All Known Subinterfaces:
GraphQLCompositeType,GraphQLDirectiveContainer,GraphQLFieldsContainer,GraphQLImplementingType,GraphQLInputFieldsContainer,GraphQLInputSchemaElement,GraphQLInputType,GraphQLInputValueDefinition,GraphQLModifiedType,GraphQLNamedInputType,GraphQLNamedOutputType,GraphQLNamedSchemaElement,GraphQLNamedType,GraphQLNullableType,GraphQLOutputType,GraphQLType,GraphQLUnmodifiedType
- All Known Implementing Classes:
GraphQLAppliedDirective,GraphQLAppliedDirectiveArgument,GraphQLArgument,GraphQLDirective,GraphQLEnumType,GraphQLEnumValueDefinition,GraphQLFieldDefinition,GraphQLInputObjectField,GraphQLInputObjectType,GraphQLInterfaceType,GraphQLList,GraphQLNonNull,GraphQLObjectType,GraphQLScalarType,GraphQLTypeReference,GraphQLUnionType
A GraphQLSchema can be viewed as a graph of GraphQLSchemaElement. Every node (vertex) of this graph implements
this interface.
-
Method Summary
Modifier and TypeMethodDescriptionaccept(TraverserContext<GraphQLSchemaElement> context, GraphQLTypeVisitor visitor) copy()Each GraphQLSchemaElement should make a copy of itself when this is called.booleanNo GraphQLSchemaElement implements `equals` because we need object identity to treat a GraphQLSchema as an abstract graph.default List<GraphQLSchemaElement> default SchemaElementChildrenContainerinthashCode()No GraphQLSchemaElement implements `equals/hashCode` because we need object identity to treat a GraphQLSchema as an abstract graph.default GraphQLSchemaElementwithNewChildren(SchemaElementChildrenContainer newChildren)
-
Method Details
-
getChildren
-
getChildrenWithTypeReferences
-
withNewChildren
-
accept
-
equals
No GraphQLSchemaElement implements `equals` because we need object identity to treat a GraphQLSchema as an abstract graph. -
hashCode
int hashCode()No GraphQLSchemaElement implements `equals/hashCode` because we need object identity to treat a GraphQLSchema as an abstract graph. -
copy
GraphQLSchemaElement copy()Each GraphQLSchemaElement should make a copy of itself when this is called. The copy should be included its current contents as they currently exist into a new object.- Returns:
- a copy of this element
-