graphql.execution.nextgen.result.LeafExecutionResultNode Maven / Gradle / Ivy
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