public final class CreatorUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static com.google.gwt.core.ext.typeinfo.JClassType |
extractBeanType(JacksonTypeOracle typeOracle,
com.google.gwt.core.ext.typeinfo.JType type)
Extract the bean type from the type given in parameter.
|
static <T extends Annotation> |
findAnnotationOnAnyAccessor(FieldAccessors fieldAccessors,
Class<T> annotation) |
static <T extends Annotation> |
findFirstEncounteredAnnotationsOnAllHierarchy(com.google.gwt.core.ext.typeinfo.JClassType type,
Class<T> annotation)
Browse all the hierarchy of the type and return the first corresponding annotation it found
|
public static <T extends Annotation> T findFirstEncounteredAnnotationsOnAllHierarchy(com.google.gwt.core.ext.typeinfo.JClassType type, Class<T> annotation)
T - type of the annotationtype - typeannotation - annotation to findpublic static <T extends Annotation> T findAnnotationOnAnyAccessor(FieldAccessors fieldAccessors, Class<T> annotation)
public static com.google.gwt.core.ext.typeinfo.JClassType extractBeanType(JacksonTypeOracle typeOracle, com.google.gwt.core.ext.typeinfo.JType type)
Collection, it gives the bounded type. For Map, it gives the second bounded type. Otherwise, it gives the type given in parameter.type - type to extract the bean typeCopyright © 2013. All Rights Reserved.