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() |
TypeInfo |
renameAs(java.lang.String newName)
This will rename the type with the specified new name but will preserve the wrapping that was present
|
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 TypeInfo renameAs(java.lang.String newName)
newName
- the new name of the typepublic <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.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object