Package graphql.schema
Class SchemaTransformer.DummyRoot
- java.lang.Object
-
- graphql.schema.SchemaTransformer.DummyRoot
-
- All Implemented Interfaces:
GraphQLSchemaElement
- Enclosing class:
- SchemaTransformer
private static class SchemaTransformer.DummyRoot extends java.lang.Object implements GraphQLSchemaElement
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static java.lang.StringADD_TYPES(package private) java.util.Set<GraphQLType>additionalTypes(package private) java.util.Set<GraphQLDirective>directives(package private) static java.lang.StringDIRECTIVES(package private) static java.lang.StringINTROSPECTION(package private) GraphQLObjectTypeintrospectionSchemaType(package private) GraphQLObjectTypemutation(package private) static java.lang.StringMUTATION(package private) GraphQLObjectTypequery(package private) static java.lang.StringQUERY(package private) GraphQLSchemaschema(package private) static java.lang.StringSCHEMA_APPLIED_DIRECTIVES(package private) static java.lang.StringSCHEMA_DIRECTIVES(package private) static java.lang.StringSCHEMA_ELEMENT(package private) java.util.Set<GraphQLAppliedDirective>schemaAppliedDirectives(package private) java.util.Set<GraphQLDirective>schemaDirectives(package private) GraphQLSchemaElementschemaElement(package private) GraphQLObjectTypesubscription(package private) static java.lang.StringSUBSCRIPTION
-
Constructor Summary
Constructors Constructor Description DummyRoot(GraphQLSchema schema)DummyRoot(GraphQLSchemaElement schemaElement)
-
Method Summary
All Methods Instance Methods Concrete 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.java.util.List<GraphQLSchemaElement>getChildren()SchemaElementChildrenContainergetChildrenWithTypeReferences()GraphQLSchemarebuildSchema(GraphQLCodeRegistry.Builder codeRegistry)GraphQLSchemaElementwithNewChildren(SchemaElementChildrenContainer newChildren)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface graphql.schema.GraphQLSchemaElement
equals, hashCode
-
-
-
-
Field Detail
-
QUERY
static final java.lang.String QUERY
- See Also:
- Constant Field Values
-
MUTATION
static final java.lang.String MUTATION
- See Also:
- Constant Field Values
-
SUBSCRIPTION
static final java.lang.String SUBSCRIPTION
- See Also:
- Constant Field Values
-
ADD_TYPES
static final java.lang.String ADD_TYPES
- See Also:
- Constant Field Values
-
DIRECTIVES
static final java.lang.String DIRECTIVES
- See Also:
- Constant Field Values
-
SCHEMA_DIRECTIVES
static final java.lang.String SCHEMA_DIRECTIVES
- See Also:
- Constant Field Values
-
SCHEMA_APPLIED_DIRECTIVES
static final java.lang.String SCHEMA_APPLIED_DIRECTIVES
- See Also:
- Constant Field Values
-
INTROSPECTION
static final java.lang.String INTROSPECTION
- See Also:
- Constant Field Values
-
SCHEMA_ELEMENT
static final java.lang.String SCHEMA_ELEMENT
- See Also:
- Constant Field Values
-
schema
GraphQLSchema schema
-
query
GraphQLObjectType query
-
mutation
GraphQLObjectType mutation
-
subscription
GraphQLObjectType subscription
-
introspectionSchemaType
GraphQLObjectType introspectionSchemaType
-
additionalTypes
java.util.Set<GraphQLType> additionalTypes
-
directives
java.util.Set<GraphQLDirective> directives
-
schemaDirectives
java.util.Set<GraphQLDirective> schemaDirectives
-
schemaAppliedDirectives
java.util.Set<GraphQLAppliedDirective> schemaAppliedDirectives
-
schemaElement
GraphQLSchemaElement schemaElement
-
-
Constructor Detail
-
DummyRoot
DummyRoot(GraphQLSchema schema)
-
DummyRoot
DummyRoot(GraphQLSchemaElement schemaElement)
-
-
Method Detail
-
copy
public GraphQLSchemaElement copy()
Description copied from interface:GraphQLSchemaElementEach 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.- Specified by:
copyin interfaceGraphQLSchemaElement- Returns:
- a copy of this element
-
getChildren
public java.util.List<GraphQLSchemaElement> getChildren()
- Specified by:
getChildrenin interfaceGraphQLSchemaElement
-
getChildrenWithTypeReferences
public SchemaElementChildrenContainer getChildrenWithTypeReferences()
- Specified by:
getChildrenWithTypeReferencesin interfaceGraphQLSchemaElement
-
withNewChildren
public GraphQLSchemaElement withNewChildren(SchemaElementChildrenContainer newChildren)
- Specified by:
withNewChildrenin interfaceGraphQLSchemaElement
-
accept
public TraversalControl accept(TraverserContext<GraphQLSchemaElement> context, GraphQLTypeVisitor visitor)
- Specified by:
acceptin interfaceGraphQLSchemaElement
-
rebuildSchema
public GraphQLSchema rebuildSchema(GraphQLCodeRegistry.Builder codeRegistry)
-
-