graphql.schema.idl.SchemaDirectiveWiringEnvironmentImpl Maven / Gradle / Ivy
package graphql.schema.idl;
import graphql.Internal;
import graphql.language.NamedNode;
import graphql.language.NodeParentTree;
import graphql.schema.GraphQLDirective;
import graphql.schema.GraphQLDirectiveContainer;
import java.util.Map;
@Internal
public class SchemaDirectiveWiringEnvironmentImpl implements SchemaDirectiveWiringEnvironment {
private final T element;
private final GraphQLDirective directive;
private final NodeParentTree nodeParentTree;
private final TypeDefinitionRegistry typeDefinitionRegistry;
private final Map context;
public SchemaDirectiveWiringEnvironmentImpl(T element, GraphQLDirective directive, NodeParentTree nodeParentTree, TypeDefinitionRegistry typeDefinitionRegistry, Map context) {
this.element = element;
this.nodeParentTree = nodeParentTree;
this.typeDefinitionRegistry = typeDefinitionRegistry;
this.directive = directive;
this.context = context;
}
@Override
public T getElement() {
return element;
}
@Override
public GraphQLDirective getDirective() {
return directive;
}
@Override
public NodeParentTree getNodeParentTree() {
return nodeParentTree;
}
@Override
public TypeDefinitionRegistry getRegistry() {
return typeDefinitionRegistry;
}
@Override
public Map getBuildContext() {
return context;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy