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.String
ADD_TYPES
(package private) java.util.Set<GraphQLType>
additionalTypes
(package private) java.util.Set<GraphQLDirective>
directives
(package private) static java.lang.String
DIRECTIVES
(package private) static java.lang.String
INTROSPECTION
(package private) GraphQLObjectType
introspectionSchemaType
(package private) GraphQLObjectType
mutation
(package private) static java.lang.String
MUTATION
(package private) GraphQLObjectType
query
(package private) static java.lang.String
QUERY
(package private) GraphQLSchema
schema
(package private) static java.lang.String
SCHEMA_APPLIED_DIRECTIVES
(package private) static java.lang.String
SCHEMA_DIRECTIVES
(package private) static java.lang.String
SCHEMA_ELEMENT
(package private) java.util.Set<GraphQLAppliedDirective>
schemaAppliedDirectives
(package private) java.util.Set<GraphQLDirective>
schemaDirectives
(package private) GraphQLSchemaElement
schemaElement
(package private) GraphQLObjectType
subscription
(package private) static java.lang.String
SUBSCRIPTION
-
Constructor Summary
Constructors Constructor Description DummyRoot(GraphQLSchema schema)
DummyRoot(GraphQLSchemaElement schemaElement)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TraversalControl
accept(TraverserContext<GraphQLSchemaElement> context, GraphQLTypeVisitor visitor)
GraphQLSchemaElement
copy()
Each GraphQLSchemaElement should make a copy of itself when this is called.java.util.List<GraphQLSchemaElement>
getChildren()
SchemaElementChildrenContainer
getChildrenWithTypeReferences()
GraphQLSchema
rebuildSchema(GraphQLCodeRegistry.Builder codeRegistry)
GraphQLSchemaElement
withNewChildren(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:GraphQLSchemaElement
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.- Specified by:
copy
in interfaceGraphQLSchemaElement
- Returns:
- a copy of this element
-
getChildren
public java.util.List<GraphQLSchemaElement> getChildren()
- Specified by:
getChildren
in interfaceGraphQLSchemaElement
-
getChildrenWithTypeReferences
public SchemaElementChildrenContainer getChildrenWithTypeReferences()
- Specified by:
getChildrenWithTypeReferences
in interfaceGraphQLSchemaElement
-
withNewChildren
public GraphQLSchemaElement withNewChildren(SchemaElementChildrenContainer newChildren)
- Specified by:
withNewChildren
in interfaceGraphQLSchemaElement
-
accept
public TraversalControl accept(TraverserContext<GraphQLSchemaElement> context, GraphQLTypeVisitor visitor)
- Specified by:
accept
in interfaceGraphQLSchemaElement
-
rebuildSchema
public GraphQLSchema rebuildSchema(GraphQLCodeRegistry.Builder codeRegistry)
-
-