public class TypeInfo extends 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
|
boolean |
equals(Object o) |
static String |
getAstDesc(Type type) |
String |
getName() |
Type |
getRawType() |
TypeName |
getTypeName() |
int |
hashCode() |
boolean |
isList() |
boolean |
isNonNull() |
boolean |
isPlain() |
String |
toString() |
static TypeInfo |
typeInfo(Type type) |
TypeInfo |
unwrapOne() |
Type |
unwrapOneType() |
public Type getRawType()
public TypeName getTypeName()
public 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 TypeInfo unwrapOne()
public Type unwrapOneType()
Copyright © 2019. All rights reserved.