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

graphql.nadel.engine.transformation.ApplyEnvironment Maven / Gradle / Ivy

The newest version!
package graphql.nadel.engine.transformation;

import graphql.Internal;
import graphql.language.Field;
import graphql.language.FragmentDefinition;
import graphql.language.Node;
import graphql.nadel.normalized.NormalizedQueryField;
import graphql.schema.GraphQLFieldDefinition;
import graphql.schema.GraphQLFieldsContainer;
import graphql.util.TraverserContext;

import java.util.List;
import java.util.Map;

@Internal
public class ApplyEnvironment {
    private final Field field;
    private final GraphQLFieldDefinition fieldDefinitionOverall;
    private final GraphQLFieldsContainer fieldsContainerOverall;
    private final TraverserContext traverserContext;
    private List normalizedQueryFieldsOverall;
    private final Map> metadataByFieldId;
    private Map fragmentDefinitionMap;

    public ApplyEnvironment(Field field,
                            GraphQLFieldDefinition fieldDefinitionOverall,
                            GraphQLFieldsContainer fieldsContainerOverall,
                            TraverserContext traverserContext,
                            List normalizedQueryFieldsOverall,
                            Map> metadataByFieldId,
                            Map fragmentDefinitionMap) {
        this.field = field;
        this.fieldDefinitionOverall = fieldDefinitionOverall;
        this.fieldsContainerOverall = fieldsContainerOverall;
        this.traverserContext = traverserContext;
        this.normalizedQueryFieldsOverall = normalizedQueryFieldsOverall;
        this.metadataByFieldId = metadataByFieldId;
        this.fragmentDefinitionMap = fragmentDefinitionMap;
    }

    public Field getField() {
        return field;
    }

    public GraphQLFieldDefinition getFieldDefinitionOverall() {
        return fieldDefinitionOverall;
    }

    public GraphQLFieldsContainer getFieldsContainerOverall() {
        return fieldsContainerOverall;
    }

    public TraverserContext getTraverserContext() {
        return traverserContext;
    }

    public List getNormalizedQueryFieldsOverall() {
        return normalizedQueryFieldsOverall;
    }

    public Map> getMetadataByFieldId() {
        return metadataByFieldId;
    }

    public Map getFragmentDefinitionMap() {
        return fragmentDefinitionMap;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy