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

graphql.execution.nextgen.result.LeafExecutionResultNode 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.Collections;
import java.util.List;

@Internal
public class LeafExecutionResultNode extends ExecutionResultNode {

    public LeafExecutionResultNode(FetchedValueAnalysis fetchedValueAnalysis,
                                   NonNullableFieldWasNullException nonNullableFieldWasNullException) {
        super(fetchedValueAnalysis, nonNullableFieldWasNullException, Collections.emptyList());
    }


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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy