graphql.analysis.QueryTraversalContext Maven / Gradle / Ivy
package graphql.analysis;
import graphql.Internal;
import graphql.language.SelectionSetContainer;
import graphql.schema.GraphQLCompositeType;
/**
* QueryTraversal helper class that maintains traversal context as
* the query traversal algorithm traverses down the Selection AST
*/
@Internal
class QueryTraversalContext {
private final GraphQLCompositeType type;
private final QueryVisitorFieldEnvironment environment;
private final SelectionSetContainer selectionSetContainer;
QueryTraversalContext(GraphQLCompositeType type, QueryVisitorFieldEnvironment environment, SelectionSetContainer selectionSetContainer) {
this.type = type;
this.environment = environment;
this.selectionSetContainer = selectionSetContainer;
}
public GraphQLCompositeType getType() {
return type;
}
public QueryVisitorFieldEnvironment getEnvironment() {
return environment;
}
public SelectionSetContainer getSelectionSetContainer() {
return selectionSetContainer;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy