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
@PublicApi public interface GraphQLSchemaElement
A GraphQLSchema can be viewed as a graph of GraphQLSchemaElement. Every node (vertex) of this graph implements this interface.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description TraversalControlaccept(TraverserContext<GraphQLSchemaElement> context, GraphQLTypeVisitor visitor)GraphQLSchemaElementcopy()Each GraphQLSchemaElement should make a copy of itself when this is called.booleanequals(java.lang.Object obj)No GraphQLSchemaElement implements `equals` because we need object identity to treat a GraphQLSchema as an abstract graph.default java.util.List<GraphQLSchemaElement>getChildren()default SchemaElementChildrenContainergetChildrenWithTypeReferences()inthashCode()No GraphQLSchemaElement implements `equals/hashCode` because we need object identity to treat a GraphQLSchema as an abstract graph.default GraphQLSchemaElementwithNewChildren(SchemaElementChildrenContainer newChildren)
-
-
-
Method Detail
-
getChildren
default java.util.List<GraphQLSchemaElement> getChildren()
-
getChildrenWithTypeReferences
default SchemaElementChildrenContainer getChildrenWithTypeReferences()
-
withNewChildren
default GraphQLSchemaElement withNewChildren(SchemaElementChildrenContainer newChildren)
-
accept
TraversalControl accept(TraverserContext<GraphQLSchemaElement> context, GraphQLTypeVisitor visitor)
-
equals
boolean equals(java.lang.Object obj)
No GraphQLSchemaElement implements `equals` because we need object identity to treat a GraphQLSchema as an abstract graph.- Overrides:
equalsin classjava.lang.Object- Parameters:
obj- the reference object with which to compare.- Returns:
trueif this object is the same as the obj argument;falseotherwise.
-
hashCode
int hashCode()
No GraphQLSchemaElement implements `equals/hashCode` because we need object identity to treat a GraphQLSchema as an abstract graph.- Overrides:
hashCodein classjava.lang.Object- Returns:
- a hash code value for this object.
-
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
-
-