graphql.analysis.QueryVisitorFieldArgumentEnvironmentImpl Maven / Gradle / Ivy
package graphql.analysis;
import graphql.Internal;
import graphql.language.Argument;
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 QueryVisitorFieldArgumentEnvironmentImpl implements QueryVisitorFieldArgumentEnvironment {
private final GraphQLFieldDefinition fieldDefinition;
private final Argument argument;
private final GraphQLArgument graphQLArgument;
private final Object argumentValue;
private final Map variables;
private final QueryVisitorFieldEnvironment parentEnvironment;
private final TraverserContext traverserContext;
private final GraphQLSchema schema;
public QueryVisitorFieldArgumentEnvironmentImpl(GraphQLFieldDefinition fieldDefinition, Argument argument, GraphQLArgument graphQLArgument, Object argumentValue, Map variables, QueryVisitorFieldEnvironment parentEnvironment, TraverserContext traverserContext, GraphQLSchema schema) {
this.fieldDefinition = fieldDefinition;
this.argument = argument;
this.graphQLArgument = graphQLArgument;
this.argumentValue = argumentValue;
this.variables = variables;
this.parentEnvironment = parentEnvironment;
this.traverserContext = traverserContext;
this.schema = schema;
}
@Override
public GraphQLSchema getSchema() {
return schema;
}
@Override
public Argument getArgument() {
return argument;
}
public GraphQLFieldDefinition getFieldDefinition() {
return fieldDefinition;
}
@Override
public GraphQLArgument getGraphQLArgument() {
return graphQLArgument;
}
@Override
public Object getArgumentValue() {
return argumentValue;
}
@Override
public Map getVariables() {
return variables;
}
@Override
public QueryVisitorFieldEnvironment getParentEnvironment() {
return parentEnvironment;
}
@Override
public TraverserContext getTraverserContext() {
return traverserContext;
}
@Override
public String toString() {
return "QueryVisitorFieldArgumentEnvironmentImpl{" +
"fieldDefinition=" + fieldDefinition +
", argument=" + argument +
", graphQLArgument=" + graphQLArgument +
", argumentValue=" + argumentValue +
", variables=" + variables +
", traverserContext=" + traverserContext +
", schema=" + schema +
'}';
}
}