Package graphql.normalized
Class NormalizedInputValue
java.lang.Object
graphql.normalized.NormalizedInputValue
An argument value with type information.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate String
assertValidTypeName
(String typeName) boolean
This can be a wrapped type: e.g.getValue()
Depending on the type it returns: Scalar or Enum: the ast literal of the Scalar.int
hashCode()
boolean
private boolean
isListOnly
(String typeName) boolean
boolean
private boolean
toString()
private String
private String
-
Field Details
-
typeName
-
value
-
-
Constructor Details
-
NormalizedInputValue
-
-
Method Details
-
assertValidTypeName
-
unwrapAll
-
getTypeName
This can be a wrapped type: e.g. [String!]!- Returns:
- the type name
-
getUnwrappedTypeName
- Returns:
- the type name unwrapped of all list and non-null type wrapping
-
getValue
Depending on the type it returns: Scalar or Enum: the ast literal of the Scalar. InputObject: the value is a map of field-name to NormalizedInputValue List of Scalar literal or Enum literal or NormalizedInput (or even List of List ..)- Returns:
- the value
-
isListLike
public boolean isListLike()- Returns:
- true if the input value type is a list or a non-nullable list
-
isNonNullable
public boolean isNonNullable()- Returns:
- true if the input value type is non-nullable
-
isNullable
public boolean isNullable()- Returns:
- true if the input value type is nullable
-
isWrapped
-
isListOnly
-
unwrapOne
-
equals
-
hashCode
public int hashCode() -
toString
-