Class TypeInfo
- java.lang.Object
-
- io.smallrye.graphql.client.impl.typesafe.reflection.TypeInfo
-
public class TypeInfo extends Object
-
-
Method Summary
-
-
-
Method Detail
-
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@Unionannotation
-
isScalar
public boolean isScalar()
-
isPrimitive
public boolean isPrimitive()
-
isVoid
public boolean isVoid()
-
isEnum
public boolean isEnum()
-
scalarConstructor
public Optional<ConstructionInfo> scalarConstructor()
-
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()
thisand 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)
-
-