All Downloads are FREE. Search and download functionalities are using the official Maven repository.

graphql.analysis.QueryVisitorFieldArgumentValueEnvironmentImpl Maven / Gradle / Ivy

The newest version!
package graphql.analysis;

import graphql.Internal;
import graphql.language.Node;
import graphql.schema.GraphQLArgument;
import graphql.schema.GraphQLFieldDefinition;
import graphql.schema.GraphQLSchema;
import graphql.util.TraverserContext;

import java.util.Map;

@Internal
public class QueryVisitorFieldArgumentValueEnvironmentImpl implements QueryVisitorFieldArgumentValueEnvironment {

    private final GraphQLFieldDefinition fieldDefinition;
    private final GraphQLArgument graphQLArgument;
    private final QueryVisitorFieldArgumentInputValue argumentInputValue;
    private final TraverserContext traverserContext;
    private final GraphQLSchema schema;
    private final Map variables;

    public QueryVisitorFieldArgumentValueEnvironmentImpl(GraphQLSchema schema, GraphQLFieldDefinition fieldDefinition, GraphQLArgument graphQLArgument, QueryVisitorFieldArgumentInputValue argumentInputValue, TraverserContext traverserContext, Map variables) {
        this.fieldDefinition = fieldDefinition;
        this.graphQLArgument = graphQLArgument;
        this.argumentInputValue = argumentInputValue;
        this.traverserContext = traverserContext;
        this.schema = schema;
        this.variables = variables;
    }

    @Override
    public GraphQLSchema getSchema() {
        return schema;
    }

    @Override
    public GraphQLFieldDefinition getFieldDefinition() {
        return fieldDefinition;
    }

    @Override
    public GraphQLArgument getGraphQLArgument() {
        return graphQLArgument;
    }

    @Override
    public QueryVisitorFieldArgumentInputValue getArgumentInputValue() {
        return argumentInputValue;
    }

    @Override
    public Map getVariables() {
        return variables;
    }

    @Override
    public TraverserContext getTraverserContext() {
        return traverserContext;
    }

    @Override
    public String toString() {
        return "QueryVisitorFieldArgumentValueEnvironmentImpl{" +
                "fieldDefinition=" + fieldDefinition +
                ", graphQLArgument=" + graphQLArgument +
                ", argumentInputValue=" + argumentInputValue +
                ", traverserContext=" + traverserContext +
                ", schema=" + schema +
                '}';
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy