java.lang.Object
io.smallrye.graphql.client.impl.typesafe.reflection.TypeInfo

public class TypeInfo extends Object
  • Method Details

    • of

      public static TypeInfo of(Type type)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • 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()
    • fields

      public Stream<FieldInfo> fields()
    • 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()
    • scalarConstructor

      public Optional<ConstructionInfo> scalarConstructor()
    • 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
    • getMethod

      public Optional<MethodInvocation> getMethod(String name, Class<?>... args)
    • 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)
    • subtype

      public TypeInfo subtype(String typename)
    • subtypes

      public Stream<TypeInfo> subtypes()