public class Classes extends Object
| Modifier and Type | Field and Description |
|---|---|
static org.jboss.jandex.DotName |
COLLECTION |
static org.jboss.jandex.DotName |
COMPLETABLE_FUTURE |
static org.jboss.jandex.DotName |
COMPLETION_STAGE |
static org.jboss.jandex.DotName |
DURATION |
static org.jboss.jandex.DotName |
ENUM |
static org.jboss.jandex.DotName |
LOCALDATE |
static org.jboss.jandex.DotName |
LOCALDATETIME |
static org.jboss.jandex.DotName |
LOCALTIME |
static org.jboss.jandex.DotName |
OFFSETDATETIME |
static org.jboss.jandex.DotName |
OFFSETTIME |
static org.jboss.jandex.DotName |
OPTIONAL |
static org.jboss.jandex.DotName |
PERIOD |
static org.jboss.jandex.DotName |
SQL_DATE |
static org.jboss.jandex.DotName |
SQL_TIME |
static org.jboss.jandex.DotName |
SQL_TIMESTAMP |
static org.jboss.jandex.DotName |
UTIL_DATE |
static org.jboss.jandex.DotName |
ZONEDDATETIME |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isAsyncType(org.jboss.jandex.Type type) |
static boolean |
isCollection(org.jboss.jandex.Type type)
Return true if type is java Collection type which is handled as GraphQL array
|
static boolean |
isCollectionOrArray(org.jboss.jandex.Type type)
Return true if type is java array, or it is Collection type which is handled as GraphQL array
|
static boolean |
isDateLikeTypeOrCollectionThereOf(org.jboss.jandex.Type type)
Check if this type is a Date (or collection of numbers)
|
static boolean |
isEnum(org.jboss.jandex.ClassInfo classInfo)
Check if a certain class is an enum
|
static boolean |
isInterface(org.jboss.jandex.ClassInfo classInfo)
Check if a certain class is an interface
|
static boolean |
isNumberLikeTypeOrCollectionThereOf(org.jboss.jandex.Type type)
Check if this type is a Number (or collection of numbers)
|
static boolean |
isOptional(org.jboss.jandex.Type type)
Check if a certain type is Optional
|
static boolean |
isUnwrappedType(org.jboss.jandex.Type type)
Return true if given type is parametrized type unwrapped/handled by the runtime before the serialization
(Optional<>, CompletableFutur<>, CompletionStage<> etc)
|
public static final org.jboss.jandex.DotName COLLECTION
public static final org.jboss.jandex.DotName ENUM
public static final org.jboss.jandex.DotName OPTIONAL
public static final org.jboss.jandex.DotName LOCALDATE
public static final org.jboss.jandex.DotName LOCALDATETIME
public static final org.jboss.jandex.DotName LOCALTIME
public static final org.jboss.jandex.DotName ZONEDDATETIME
public static final org.jboss.jandex.DotName OFFSETDATETIME
public static final org.jboss.jandex.DotName OFFSETTIME
public static final org.jboss.jandex.DotName PERIOD
public static final org.jboss.jandex.DotName DURATION
public static final org.jboss.jandex.DotName UTIL_DATE
public static final org.jboss.jandex.DotName SQL_DATE
public static final org.jboss.jandex.DotName SQL_TIMESTAMP
public static final org.jboss.jandex.DotName SQL_TIME
public static final org.jboss.jandex.DotName COMPLETABLE_FUTURE
public static final org.jboss.jandex.DotName COMPLETION_STAGE
public static boolean isOptional(org.jboss.jandex.Type type)
type - the typepublic static boolean isInterface(org.jboss.jandex.ClassInfo classInfo)
classInfo - the class to checkpublic static boolean isEnum(org.jboss.jandex.ClassInfo classInfo)
classInfo - the class to checkpublic static boolean isNumberLikeTypeOrCollectionThereOf(org.jboss.jandex.Type type)
type - the type to checkpublic static boolean isDateLikeTypeOrCollectionThereOf(org.jboss.jandex.Type type)
type - the type to checkpublic static boolean isAsyncType(org.jboss.jandex.Type type)
public static boolean isCollectionOrArray(org.jboss.jandex.Type type)
type - to checkpublic static boolean isCollection(org.jboss.jandex.Type type)
type - to checkpublic static boolean isUnwrappedType(org.jboss.jandex.Type type)
type - to be checkedCopyright © 2018–2020. All rights reserved.