public final class CreatorUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static com.google.gwt.thirdparty.guava.common.base.Function<Object,String> |
QUOTED_FUNCTION |
| Modifier and Type | Method and Description |
|---|---|
static com.google.gwt.core.ext.typeinfo.JClassType |
extractBeanType(com.google.gwt.core.ext.TreeLogger logger,
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
|
static String |
getDefaultValueForType(com.google.gwt.core.ext.typeinfo.JType type)
Returns the default value of the given type.
|
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(com.google.gwt.core.ext.TreeLogger logger,
JacksonTypeOracle typeOracle,
com.google.gwt.core.ext.typeinfo.JType type)
throws com.google.gwt.core.ext.UnableToCompleteException
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 typecom.google.gwt.core.ext.UnableToCompleteExceptionpublic static String getDefaultValueForType(com.google.gwt.core.ext.typeinfo.JType type)
Object : nulltype - type to find the default valueCopyright © 2013. All Rights Reserved.