@PublicApi public class ParseAndValidateResult extends java.lang.Object
ParseAndValidate
helper that indicates the outcomes of a parse
and validate operation.Modifier and Type | Class and Description |
---|---|
static class |
ParseAndValidateResult.Builder |
Modifier and Type | Method and Description |
---|---|
Document |
getDocument() |
DocumentAndVariables |
getDocumentAndVariables() |
java.util.List<GraphQLError> |
getErrors()
A list of all the errors (parse and validate) that have occurred
|
InvalidSyntaxException |
getSyntaxException() |
java.util.List<ValidationError> |
getValidationErrors() |
java.util.Map<java.lang.String,java.lang.Object> |
getVariables() |
boolean |
isFailure() |
static ParseAndValidateResult.Builder |
newResult() |
ParseAndValidateResult |
transform(java.util.function.Consumer<ParseAndValidateResult.Builder> builderConsumer) |
public boolean isFailure()
public Document getDocument()
public java.util.Map<java.lang.String,java.lang.Object> getVariables()
public DocumentAndVariables getDocumentAndVariables()
public InvalidSyntaxException getSyntaxException()
public java.util.List<ValidationError> getValidationErrors()
public java.util.List<GraphQLError> getErrors()
public ParseAndValidateResult transform(java.util.function.Consumer<ParseAndValidateResult.Builder> builderConsumer)
public static ParseAndValidateResult.Builder newResult()