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

graphql.execution.nextgen.result.DeferExecutionResultNode Maven / Gradle / Ivy

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

import graphql.Assert;
import graphql.Internal;
import graphql.execution.NonNullableFieldWasNullException;
import graphql.execution.nextgen.FetchedValueAnalysis;

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

@Internal
public class DeferExecutionResultNode extends ExecutionResultNode {

    public DeferExecutionResultNode(FetchedValueAnalysis fetchedValueAnalysis,
                                    NonNullableFieldWasNullException nonNullableFieldWasNullException) {
        super(fetchedValueAnalysis, nonNullableFieldWasNullException);
    }

    @Override
    public List getChildren() {
        return Assert.assertShouldNeverHappen();
    }

    @Override
    public ExecutionResultNode withChild(ExecutionResultNode child, ExecutionResultNodePosition position) {
        return Assert.assertShouldNeverHappen("Not available for leafs");
    }

    @Override
    public ExecutionResultNode withNewChildren(Map children) {
        return Assert.assertShouldNeverHappen();
    }

    public Object getValue() {
        return getFetchedValueAnalysis().getCompletedValue();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy