public class TypeInfo
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
<T extends GraphQLType> |
decorate(GraphQLType objectType)
This will decorate a graphql type with the original hierarchy of non null and list'ness
it originally contained in its definition type
|
static java.lang.String |
getAstDesc(Type type) |
java.lang.String |
getName() |
Type |
getRawType() |
TypeName |
getTypeName() |
boolean |
isList() |
boolean |
isNonNull() |
boolean |
isPlain() |
java.lang.String |
toString() |
static TypeInfo |
typeInfo(Type type) |
TypeInfo |
unwrapOne() |
public TypeInfo(Type type)
public Type getRawType()
public TypeName getTypeName()
public java.lang.String getName()
public boolean isList()
public boolean isNonNull()
public boolean isPlain()
public <T extends GraphQLType> T decorate(GraphQLType objectType)
T
- the typeobjectType
- this should be a graphql type that was originally built from this raw typepublic static java.lang.String getAstDesc(Type type)
public TypeInfo unwrapOne()
public java.lang.String toString()
toString
in class java.lang.Object