Package | Description |
---|---|
graphql.language | |
graphql.parser | |
graphql.schema.idl | |
graphql.validation | |
graphql.validation.rules |
Modifier and Type | Interface and Description |
---|---|
interface |
ScalarValue<T extends Value> |
interface |
Value<T extends Value> |
Modifier and Type | Interface and Description |
---|---|
interface |
ScalarValue<T extends Value> |
Modifier and Type | Class and Description |
---|---|
class |
ArrayValue |
class |
BooleanValue |
class |
EnumValue |
class |
FloatValue |
class |
IntValue |
class |
NullValue |
class |
ObjectValue |
class |
StringValue |
class |
VariableReference |
Modifier and Type | Method and Description |
---|---|
static Value |
AstValueHelper.astFromValue(Object value,
GraphQLType type)
Produces a GraphQL Value AST given a Java value.
|
Value |
VariableDefinition.getDefaultValue() |
Value |
InputValueDefinition.getDefaultValue() |
Value |
ObjectField.getValue() |
Value |
Argument.getValue() |
static Value |
AstValueHelper.valueFromAst(String astLiteral)
Parses an AST value literal into the correct
Value which
MUST be of the correct shape eg '"string"' or 'true' or '1' or '{ "object", "form" }'
or '[ "array", "form" ]' otherwise an exception is thrown |
Modifier and Type | Method and Description |
---|---|
List<Value> |
ArrayValue.getValues() |
Modifier and Type | Method and Description |
---|---|
VariableDefinition.Builder |
VariableDefinition.Builder.defaultValue(Value defaultValue) |
InputValueDefinition.Builder |
InputValueDefinition.Builder.defaultValue(Value defaultValue) |
static Argument.Builder |
Argument.newArgument(String name,
Value value) |
static VariableDefinition.Builder |
VariableDefinition.newVariableDefinition(String name,
Type type,
Value defaultValue) |
ObjectField.Builder |
ObjectField.Builder.value(Value value) |
ArrayValue.Builder |
ArrayValue.Builder.value(Value value) |
Argument.Builder |
Argument.Builder.value(Value value) |
protected TraversalControl |
NodeVisitorStub.visitValue(Value<?> node,
TraverserContext<Node> context) |
Modifier and Type | Method and Description |
---|---|
ArrayValue.Builder |
ArrayValue.Builder.values(List<Value> values) |
Constructor and Description |
---|
Argument(String name,
Value value)
alternative to using a Builder for convenience
|
Argument(String name,
Value value,
SourceLocation sourceLocation,
List<Comment> comments,
IgnoredChars ignoredChars) |
InputValueDefinition(String name,
Type type,
Value defaultValue)
alternative to using a Builder for convenience
|
InputValueDefinition(String name,
Type type,
Value defaultValue,
List<Directive> directives,
Description description,
SourceLocation sourceLocation,
List<Comment> comments,
IgnoredChars ignoredChars) |
ObjectField(String name,
Value value)
alternative to using a Builder for convenience
|
ObjectField(String name,
Value value,
SourceLocation sourceLocation,
List<Comment> comments,
IgnoredChars ignoredChars) |
VariableDefinition(String name,
Type type,
Value defaultValue)
alternative to using a Builder for convenience
|
VariableDefinition(String name,
Type type,
Value defaultValue,
SourceLocation sourceLocation,
List<Comment> comments,
IgnoredChars ignoredChars) |
Constructor and Description |
---|
ArrayValue(List<Value> values)
alternative to using a Builder for convenience
|
ArrayValue(List<Value> values,
SourceLocation sourceLocation,
List<Comment> comments,
IgnoredChars ignoredChars) |
Modifier and Type | Method and Description |
---|---|
protected Value |
GraphqlAntlrToLanguage.createValue(GraphqlParser.ValueContext ctx) |
protected Value |
GraphqlAntlrToLanguage.createValue(GraphqlParser.ValueWithVariableContext ctx) |
Modifier and Type | Method and Description |
---|---|
GraphQLInputType |
SchemaGeneratorHelper.buildDirectiveInputType(Value value)
We support the basic types as directive types
|
Object |
SchemaGeneratorHelper.buildValue(Value value,
GraphQLType requiredType) |
Modifier and Type | Method and Description |
---|---|
protected void |
ValidationUtil.handleEnumError(Value value,
GraphQLEnumType type) |
protected void |
ArgumentValidationUtil.handleEnumError(Value value,
GraphQLEnumType type) |
protected void |
ValidationUtil.handleExtraFieldError(Value value,
GraphQLInputObjectType type,
ObjectField objectField) |
protected void |
ArgumentValidationUtil.handleExtraFieldError(Value value,
GraphQLInputObjectType type,
ObjectField objectField) |
protected void |
ValidationUtil.handleFieldNotValidError(Value value,
GraphQLType type,
int index) |
protected void |
ArgumentValidationUtil.handleFieldNotValidError(Value value,
GraphQLType type,
int index) |
protected void |
ValidationUtil.handleMissingFieldsError(Value value,
GraphQLInputObjectType type,
Set<String> missingFields) |
protected void |
ArgumentValidationUtil.handleMissingFieldsError(Value value,
GraphQLInputObjectType type,
Set<String> missingFields) |
protected void |
ValidationUtil.handleNotObjectError(Value value,
GraphQLInputObjectType type) |
protected void |
ArgumentValidationUtil.handleNotObjectError(Value value,
GraphQLInputObjectType type) |
protected void |
ValidationUtil.handleNullError(Value value,
GraphQLType type) |
protected void |
ArgumentValidationUtil.handleNullError(Value value,
GraphQLType type) |
protected void |
ValidationUtil.handleScalarError(Value value,
GraphQLScalarType type) |
protected void |
ArgumentValidationUtil.handleScalarError(Value value,
GraphQLScalarType type) |
boolean |
ValidationUtil.isValidLiteralValue(Value value,
GraphQLType type,
GraphQLSchema schema) |
Modifier and Type | Method and Description |
---|---|
boolean |
VariablesTypesMatcher.doesVariableTypesMatch(GraphQLType variableType,
Value variableDefaultValue,
GraphQLType expectedType) |
GraphQLType |
VariablesTypesMatcher.effectiveType(GraphQLType variableType,
Value defaultValue) |
Copyright © 2019. All rights reserved.