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

graphql.execution.nextgen.FieldSubSelection Maven / Gradle / Ivy

There is a newer version: 230521-nf-execution
Show newest version
package graphql.execution.nextgen;

import graphql.Internal;
import graphql.execution.ExecutionStepInfo;
import graphql.language.Field;

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


/**
 * A map from name to List of Field representing the actual sub selections (during execution) of a Field with Fragments
 * evaluated and conditional directives considered.
 */
@Internal
public class FieldSubSelection {

    private Object source;
    // the type of this must be objectType
    private ExecutionStepInfo executionInfo;
    private Map> fields = new LinkedHashMap<>();

    public Object getSource() {
        return source;
    }

    public void setSource(Object source) {
        this.source = source;
    }

    public Map> getFields() {
        return fields;
    }

    public void setFields(Map> fields) {
        this.fields = fields;
    }

    public ExecutionStepInfo getExecutionStepInfo() {
        return executionInfo;
    }

    public void setExecutionStepInfo(ExecutionStepInfo executionInfo) {
        this.executionInfo = executionInfo;
    }

    @Override
    public String toString() {
        return "FieldSubSelection{" +
                "source=" + source +
                ", executionInfo=" + executionInfo +
                ", fields=" + fields +
                '}';
    }

    public String toShortString() {
        return "FieldSubSelection{" +
                "fields=" + fields.keySet() +
                '}';
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy