Class TypeInfo


  • public class TypeInfo
    extends Object
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • getTypeName

        public String getTypeName()
      • getGraphQlTypeName

        public String getGraphQlTypeName()
      • getSimpleName

        public String getSimpleName()
      • getPackage

        public String getPackage()
      • isCollection

        public boolean isCollection()
      • isAsync

        public boolean isAsync()
      • isMulti

        public boolean isMulti()
      • isUni

        public boolean isUni()
      • isMap

        public boolean isMap()
      • isOptionalNumber

        public boolean isOptionalNumber()
      • isOptional

        public boolean isOptional()
      • isErrorOr

        public boolean isErrorOr()
      • isTypesafeResponse

        public boolean isTypesafeResponse()
      • isRecord

        public boolean isRecord()
      • isUnion

        public boolean isUnion()
      • isInterface

        public boolean isInterface()
        Is this a GraphQL Interface, i.e. a Java interface without a @Union annotation
      • isScalar

        public boolean isScalar()
      • isPrimitive

        public boolean isPrimitive()
      • isVoid

        public boolean isVoid()
      • isEnum

        public boolean isEnum()
      • newInstance

        public Object newInstance​(Object[] args)
      • isNonNull

        public boolean isNonNull()
      • getRawType

        public Class<?> getRawType()
      • getItemType

        public TypeInfo getItemType()
      • getKeyType

        public TypeInfo getKeyType()
        Get the type of keys included in this Map. This only works when this type is a Map
      • getValueType

        public TypeInfo getValueType()
        Get the type of values included in this Map. This only works when this type is a Map
      • isNestedIn

        public boolean isNestedIn​(TypeInfo that)
      • enclosingTypes

        public Stream<TypeInfo> enclosingTypes()
        this and all enclosing types, i.e. the types this type is nested in.
      • isAnnotated

        public boolean isAnnotated​(Class<? extends Annotation> type)
      • getAnnotation

        public <T extends Annotation> T getAnnotation​(Class<T> type)