public class TypeUtil extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
TypeUtil.DataFormat |
static class |
TypeUtil.TypeWithFormat |
| Modifier and Type | Method and Description |
|---|---|
static TypeUtil.TypeWithFormat |
arrayFormat() |
static org.jboss.jandex.AnnotationInstance |
getAnnotation(org.jboss.jandex.AnnotationTarget annotationTarget,
org.jboss.jandex.DotName annotationName) |
static org.jboss.jandex.AnnotationInstance |
getAnnotation(org.jboss.jandex.ClassInfo field,
org.jboss.jandex.DotName annotationName) |
static org.jboss.jandex.AnnotationInstance |
getAnnotation(org.jboss.jandex.FieldInfo field,
org.jboss.jandex.DotName annotationName) |
static org.jboss.jandex.AnnotationInstance |
getAnnotation(org.jboss.jandex.Type type,
org.jboss.jandex.DotName annotationName) |
static Collection<org.jboss.jandex.AnnotationInstance> |
getAnnotations(org.jboss.jandex.AnnotationTarget type) |
static org.jboss.jandex.Type |
getBound(org.jboss.jandex.WildcardType wct) |
static Class<?> |
getClass(String name) |
static Class<?> |
getClass(org.jboss.jandex.Type type) |
static org.jboss.jandex.DotName |
getName(org.jboss.jandex.Type type) |
static org.jboss.jandex.AnnotationInstance |
getSchemaAnnotation(org.jboss.jandex.AnnotationTarget annotationTarget) |
static org.jboss.jandex.AnnotationInstance |
getSchemaAnnotation(org.jboss.jandex.ClassInfo field) |
static org.jboss.jandex.AnnotationInstance |
getSchemaAnnotation(org.jboss.jandex.FieldInfo field) |
static org.jboss.jandex.AnnotationInstance |
getSchemaAnnotation(org.jboss.jandex.Type type) |
static TypeUtil.TypeWithFormat |
getTypeFormat(org.jboss.jandex.PrimitiveType primitiveType) |
static TypeUtil.TypeWithFormat |
getTypeFormat(org.jboss.jandex.Type classType) |
static boolean |
isA(org.jboss.jandex.IndexView index,
org.jboss.jandex.Type testSubject,
org.jboss.jandex.Type testObject)
Test whether testSubject is an instanceof type test.
|
static TypeUtil.TypeWithFormat |
objectFormat() |
static org.jboss.jandex.Type |
resolveWildcard(org.jboss.jandex.Type type) |
static org.jboss.jandex.Type |
resolveWildcard(org.jboss.jandex.WildcardType wildcardType) |
public static TypeUtil.TypeWithFormat getTypeFormat(org.jboss.jandex.PrimitiveType primitiveType)
public static TypeUtil.TypeWithFormat getTypeFormat(org.jboss.jandex.Type classType)
public static TypeUtil.TypeWithFormat arrayFormat()
public static TypeUtil.TypeWithFormat objectFormat()
public static Class<?> getClass(org.jboss.jandex.Type type) throws ClassNotFoundException
ClassNotFoundExceptionpublic static Class<?> getClass(String name) throws ClassNotFoundException
ClassNotFoundExceptionpublic static boolean isA(org.jboss.jandex.IndexView index,
org.jboss.jandex.Type testSubject,
org.jboss.jandex.Type testObject)
For example, test whether List is a Collection.
Attempts to work with both Jandex and using standard class.
index - Jandex indextestSubject - type to testtestObject - type to test againstpublic static org.jboss.jandex.DotName getName(org.jboss.jandex.Type type)
public static org.jboss.jandex.Type getBound(org.jboss.jandex.WildcardType wct)
public static org.jboss.jandex.Type resolveWildcard(org.jboss.jandex.WildcardType wildcardType)
public static org.jboss.jandex.Type resolveWildcard(org.jboss.jandex.Type type)
public static org.jboss.jandex.AnnotationInstance getSchemaAnnotation(org.jboss.jandex.AnnotationTarget annotationTarget)
public static org.jboss.jandex.AnnotationInstance getSchemaAnnotation(org.jboss.jandex.ClassInfo field)
public static org.jboss.jandex.AnnotationInstance getSchemaAnnotation(org.jboss.jandex.FieldInfo field)
public static org.jboss.jandex.AnnotationInstance getSchemaAnnotation(org.jboss.jandex.Type type)
public static org.jboss.jandex.AnnotationInstance getAnnotation(org.jboss.jandex.AnnotationTarget annotationTarget,
org.jboss.jandex.DotName annotationName)
public static Collection<org.jboss.jandex.AnnotationInstance> getAnnotations(org.jboss.jandex.AnnotationTarget type)
public static org.jboss.jandex.AnnotationInstance getAnnotation(org.jboss.jandex.Type type,
org.jboss.jandex.DotName annotationName)
public static org.jboss.jandex.AnnotationInstance getAnnotation(org.jboss.jandex.ClassInfo field,
org.jboss.jandex.DotName annotationName)
public static org.jboss.jandex.AnnotationInstance getAnnotation(org.jboss.jandex.FieldInfo field,
org.jboss.jandex.DotName annotationName)
Copyright © 2019. All rights reserved.