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 <T extends Annotation> |
findFirstEncounteredAnnotationsOnAllHierarchy(RebindConfiguration configuration,
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 <T extends Annotation> |
getAnnotation(Class<T> annotation,
List<? extends com.google.gwt.core.ext.typeinfo.HasAnnotations> hasAnnotationsList) |
static String |
getDefaultValueForType(com.google.gwt.core.ext.typeinfo.JType type)
Returns the default value of the given type.
|
static <T extends Annotation> |
isAnnotationPresent(Class<T> annotation,
List<? extends com.google.gwt.core.ext.typeinfo.HasAnnotations> hasAnnotationsList) |
public static <T extends Annotation> com.google.gwt.thirdparty.guava.common.base.Optional<T> findFirstEncounteredAnnotationsOnAllHierarchy(RebindConfiguration configuration, com.google.gwt.core.ext.typeinfo.JClassType type, Class<T> annotation)
T - type of the annotationtype - typeannotation - annotation to findpublic static <T extends Annotation> boolean isAnnotationPresent(Class<T> annotation, List<? extends com.google.gwt.core.ext.typeinfo.HasAnnotations> hasAnnotationsList)
public static <T extends Annotation> com.google.gwt.thirdparty.guava.common.base.Optional<T> getAnnotation(Class<T> annotation, List<? extends com.google.gwt.core.ext.typeinfo.HasAnnotations> hasAnnotationsList)
public static String getDefaultValueForType(com.google.gwt.core.ext.typeinfo.JType type)
Object : nulltype - type to find the default valueCopyright © 2014. All Rights Reserved.