public class SchemaDirectiveWiringEnvironmentImpl<T extends GraphQLDirectiveContainer> extends java.lang.Object implements SchemaDirectiveWiringEnvironment<T>
Constructor and Description |
---|
SchemaDirectiveWiringEnvironmentImpl(T element,
GraphQLDirective directive,
graphql.schema.idl.SchemaGeneratorDirectiveHelper.Parameters parameters) |
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.Object> |
getBuildContext() |
GraphQLCodeRegistry.Builder |
getCodeRegistry() |
GraphQLDirective |
getDirective() |
T |
getElement() |
GraphqlElementParentTree |
getElementParentTree()
The type hierarchy depends on the element in question.
|
GraphQLFieldDefinition |
getFieldDefinition() |
GraphQLFieldsContainer |
getFieldsContainer() |
NodeParentTree<NamedNode> |
getNodeParentTree()
The node hierarchy depends on the element in question.
|
TypeDefinitionRegistry |
getRegistry() |
public SchemaDirectiveWiringEnvironmentImpl(T element, GraphQLDirective directive, graphql.schema.idl.SchemaGeneratorDirectiveHelper.Parameters parameters)
public T getElement()
getElement
in interface SchemaDirectiveWiringEnvironment<T extends GraphQLDirectiveContainer>
public GraphQLDirective getDirective()
getDirective
in interface SchemaDirectiveWiringEnvironment<T extends GraphQLDirectiveContainer>
public NodeParentTree<NamedNode> getNodeParentTree()
SchemaDirectiveWiringEnvironment
ObjectTypeDefinition
nodes
have no parent, however a Argument
might be on a FieldDefinition
which in turn might be on a ObjectTypeDefinition
saygetNodeParentTree
in interface SchemaDirectiveWiringEnvironment<T extends GraphQLDirectiveContainer>
public TypeDefinitionRegistry getRegistry()
getRegistry
in interface SchemaDirectiveWiringEnvironment<T extends GraphQLDirectiveContainer>
public java.util.Map<java.lang.String,java.lang.Object> getBuildContext()
getBuildContext
in interface SchemaDirectiveWiringEnvironment<T extends GraphQLDirectiveContainer>
public GraphQLCodeRegistry.Builder getCodeRegistry()
getCodeRegistry
in interface SchemaDirectiveWiringEnvironment<T extends GraphQLDirectiveContainer>
public GraphQLFieldsContainer getFieldsContainer()
getFieldsContainer
in interface SchemaDirectiveWiringEnvironment<T extends GraphQLDirectiveContainer>
GraphQLFieldsContainer
when the element is contained with a fields containerpublic GraphqlElementParentTree getElementParentTree()
SchemaDirectiveWiringEnvironment
GraphQLObjectType
elements
have no parent, however a GraphQLArgument
might be on a GraphQLFieldDefinition
which in turn might be on a GraphQLObjectType
saygetElementParentTree
in interface SchemaDirectiveWiringEnvironment<T extends GraphQLDirectiveContainer>
public GraphQLFieldDefinition getFieldDefinition()
getFieldDefinition
in interface SchemaDirectiveWiringEnvironment<T extends GraphQLDirectiveContainer>
GraphQLFieldDefinition
when the element is one or is contained within one