public class LeafExecutionResultNode extends ExecutionResultNode
Constructor and Description |
---|
LeafExecutionResultNode(FetchedValueAnalysis fetchedValueAnalysis,
NonNullableFieldWasNullException nonNullableFieldWasNullException) |
LeafExecutionResultNode(FetchedValueAnalysis fetchedValueAnalysis,
NonNullableFieldWasNullException nonNullableFieldWasNullException,
java.util.List<GraphQLError> errors) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getValue() |
ExecutionResultNode |
withNewChildren(java.util.List<ExecutionResultNode> children)
Creates a new ExecutionResultNode of the same specific type with the new set of result children
|
ExecutionResultNode |
withNewErrors(java.util.List<GraphQLError> errors)
Creates a new ExecutionResultNode of the same specific type with the new error collection
|
ExecutionResultNode |
withNewFetchedValueAnalysis(FetchedValueAnalysis fetchedValueAnalysis)
Creates a new ExecutionResultNode of the same specific type with the new
FetchedValueAnalysis |
getChildNonNullableException, getChildren, getErrors, getFetchedValueAnalysis, getMergedField, getNonNullableFieldWasNullException, toString
public LeafExecutionResultNode(FetchedValueAnalysis fetchedValueAnalysis, NonNullableFieldWasNullException nonNullableFieldWasNullException)
public LeafExecutionResultNode(FetchedValueAnalysis fetchedValueAnalysis, NonNullableFieldWasNullException nonNullableFieldWasNullException, java.util.List<GraphQLError> errors)
public java.lang.Object getValue()
public ExecutionResultNode withNewChildren(java.util.List<ExecutionResultNode> children)
ExecutionResultNode
withNewChildren
in class ExecutionResultNode
children
- the new children for this result nodepublic ExecutionResultNode withNewFetchedValueAnalysis(FetchedValueAnalysis fetchedValueAnalysis)
ExecutionResultNode
FetchedValueAnalysis
withNewFetchedValueAnalysis
in class ExecutionResultNode
fetchedValueAnalysis
- the FetchedValueAnalysis
for this result nodeFetchedValueAnalysis
public ExecutionResultNode withNewErrors(java.util.List<GraphQLError> errors)
ExecutionResultNode
withNewErrors
in class ExecutionResultNode
errors
- the new errors for this result node