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
|
boolean |
equals(java.lang.Object o) |
static java.lang.String |
getAstDesc(Type type) |
java.lang.String |
getName() |
Type |
getRawType() |
TypeName |
getTypeName() |
int |
hashCode() |
boolean |
isList() |
boolean |
isNonNull() |
boolean |
isPlain() |
java.lang.String |
toString() |
static TypeInfo |
typeInfo(Type type) |
TypeInfo |
unwrapOne() |
Type |
unwrapOneType() |
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 Type unwrapOneType()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object