public final class CreatorUtils
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static com.google.gwt.thirdparty.guava.common.base.Function<java.lang.Object,java.lang.String> |
QUOTED_FUNCTION |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
escapeString(java.lang.String value)
Escapes the
String given in parameter |
static com.google.gwt.thirdparty.guava.common.collect.ImmutableList<com.google.gwt.core.ext.typeinfo.JClassType> |
filterSubtypesForDeserialization(com.google.gwt.core.ext.TreeLogger logger,
RebindConfiguration configuration,
com.google.gwt.core.ext.typeinfo.JClassType type) |
static com.google.gwt.thirdparty.guava.common.collect.ImmutableList<com.google.gwt.core.ext.typeinfo.JClassType> |
filterSubtypesForSerialization(com.google.gwt.core.ext.TreeLogger logger,
RebindConfiguration configuration,
com.google.gwt.core.ext.typeinfo.JClassType type) |
static <T extends java.lang.annotation.Annotation> |
findFirstEncounteredAnnotationsOnAllHierarchy(RebindConfiguration configuration,
com.google.gwt.core.ext.typeinfo.JClassType type,
java.lang.Class<T> annotation)
Browse all the hierarchy of the type and return the first corresponding annotation it found
|
static <T extends java.lang.annotation.Annotation> |
getAnnotation(java.lang.Class<T> annotation,
java.util.List<? extends com.google.gwt.core.ext.typeinfo.HasAnnotations> hasAnnotationsList) |
static java.lang.String |
getDefaultValueForType(com.google.gwt.core.ext.typeinfo.JType type)
Returns the default value of the given type.
|
static <T extends java.lang.annotation.Annotation> |
isAnnotationPresent(java.lang.Class<T> annotation,
java.util.List<? extends com.google.gwt.core.ext.typeinfo.HasAnnotations> hasAnnotationsList) |
static boolean |
isObject(com.google.gwt.core.ext.typeinfo.JType type) |
static boolean |
isObjectOrSerializable(com.google.gwt.core.ext.typeinfo.JType type) |
static boolean |
isSerializable(com.google.gwt.core.ext.typeinfo.JType type) |
public static final com.google.gwt.thirdparty.guava.common.base.Function<java.lang.Object,java.lang.String> QUOTED_FUNCTION
public static <T extends java.lang.annotation.Annotation> com.google.gwt.thirdparty.guava.common.base.Optional<T> findFirstEncounteredAnnotationsOnAllHierarchy(RebindConfiguration configuration, com.google.gwt.core.ext.typeinfo.JClassType type, java.lang.Class<T> annotation)
T - type of the annotationtype - typeannotation - annotation to findpublic static <T extends java.lang.annotation.Annotation> boolean isAnnotationPresent(java.lang.Class<T> annotation,
java.util.List<? extends com.google.gwt.core.ext.typeinfo.HasAnnotations> hasAnnotationsList)
public static <T extends java.lang.annotation.Annotation> com.google.gwt.thirdparty.guava.common.base.Optional<T> getAnnotation(java.lang.Class<T> annotation,
java.util.List<? extends com.google.gwt.core.ext.typeinfo.HasAnnotations> hasAnnotationsList)
public static java.lang.String getDefaultValueForType(com.google.gwt.core.ext.typeinfo.JType type)
Object : nulltype - type to find the default valuepublic static boolean isObject(com.google.gwt.core.ext.typeinfo.JType type)
type - the type to testObject, false otherwisepublic static boolean isSerializable(com.google.gwt.core.ext.typeinfo.JType type)
type - the type to testSerializable, false otherwisepublic static boolean isObjectOrSerializable(com.google.gwt.core.ext.typeinfo.JType type)
type - the type to testObject or Serializable, false otherwisepublic static com.google.gwt.thirdparty.guava.common.collect.ImmutableList<com.google.gwt.core.ext.typeinfo.JClassType> filterSubtypesForSerialization(com.google.gwt.core.ext.TreeLogger logger,
RebindConfiguration configuration,
com.google.gwt.core.ext.typeinfo.JClassType type)
public static com.google.gwt.thirdparty.guava.common.collect.ImmutableList<com.google.gwt.core.ext.typeinfo.JClassType> filterSubtypesForDeserialization(com.google.gwt.core.ext.TreeLogger logger,
RebindConfiguration configuration,
com.google.gwt.core.ext.typeinfo.JClassType type)
public static java.lang.String escapeString(java.lang.String value)
String given in parametervalue - the StringStringCopyright © 2015. All Rights Reserved.