public abstract class AbstractCreator
extends com.google.gwt.user.rebind.AbstractSourceCreator
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractCreator(com.google.gwt.core.ext.TreeLogger logger,
com.google.gwt.core.ext.GeneratorContext context) |
protected |
AbstractCreator(com.google.gwt.core.ext.TreeLogger logger,
com.google.gwt.core.ext.GeneratorContext context,
JacksonTypeOracle typeOracle) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
findIdPropertyInfo(Map<String,PropertyInfo> properties,
com.google.gwt.thirdparty.guava.common.base.Optional<BeanIdentityInfo> identityInfo) |
protected void |
generateIdentifierDeserializationInfo(com.google.gwt.user.rebind.SourceWriter source,
BeanInfo beanInfo,
BeanIdentityInfo identityInfo) |
protected void |
generateIdentifierSerializationInfo(com.google.gwt.user.rebind.SourceWriter source,
com.google.gwt.core.ext.typeinfo.JClassType type,
BeanIdentityInfo identityInfo) |
protected void |
generateSuperclassInfo(com.google.gwt.user.rebind.SourceWriter source,
BeanInfo beanInfo,
com.google.gwt.thirdparty.guava.common.base.Optional<BeanTypeInfo> typeInfo,
boolean serialization) |
protected static String |
getJavaObjectTypeFor(com.google.gwt.core.ext.typeinfo.JPrimitiveType type)
Returns the String represention of the java type for a primitive for example int/Integer, float/Float, char/Character.
|
protected String |
getJsonDeserializerFromType(com.google.gwt.core.ext.typeinfo.JType type)
Build the string that instantiate a
JsonDeserializer for the given type. |
protected String |
getJsonDeserializerFromType(com.google.gwt.core.ext.typeinfo.JType type,
PropertyInfo propertyInfo)
Build the string that instantiate a
JsonDeserializer for the given type. |
protected String |
getJsonSerializerFromType(com.google.gwt.core.ext.typeinfo.JType type)
Build the string that instantiate a
JsonSerializer for the given type. |
protected String |
getJsonSerializerFromType(com.google.gwt.core.ext.typeinfo.JType type,
PropertyInfo propertyInfo)
Build the string that instantiate a
JsonSerializer for the given type. |
protected String |
getKeyDeserializerFromType(com.google.gwt.core.ext.typeinfo.JType type)
Build the string that instantiate a
KeyDeserializer for the given type. |
protected String |
getKeySerializerFromType(com.google.gwt.core.ext.typeinfo.JType type)
Build the string that instantiate a
KeySerializer for the given type. |
protected PrintWriter |
getPrintWriter(String packageName,
String className) |
protected String |
getQualifiedClassName(com.google.gwt.core.ext.typeinfo.JType type) |
protected com.google.gwt.user.rebind.SourceWriter |
getSourceWriter(PrintWriter printWriter,
String packageName,
String className,
String superClass,
String... interfaces) |
public static final String JSON_DESERIALIZER_CLASS
public static final String JSON_SERIALIZER_CLASS
public static final String JSON_READER_CLASS
public static final String JSON_WRITER_CLASS
public static final String JSON_DESERIALIZATION_CONTEXT_CLASS
public static final String JSON_SERIALIZATION_CONTEXT_CLASS
public static final String ARRAY_CREATOR_CLASS
protected static final String IDENTITY_DESERIALIZATION_INFO_CLASS
protected static final String IDENTITY_SERIALIZATION_INFO_CLASS
protected static final String TYPE_PARAMETER_PREFIX
protected static final String TYPE_PARAMETER_DESERIALIZER_FIELD_NAME
protected static final String TYPE_PARAMETER_SERIALIZER_FIELD_NAME
protected static final String ABSTRACT_BEAN_JSON_DESERIALIZER_CLASS
protected static final String ABSTRACT_BEAN_JSON_SERIALIZER_CLASS
protected static final String SUPERCLASS_DESERIALIZATION_INFO_CLASS
protected static final String SUBTYPE_DESERIALIZER_CLASS
protected static final String SUPERCLASS_SERIALIZATION_INFO_CLASS
protected static final String SUBTYPE_SERIALIZER_CLASS
protected final com.google.gwt.core.ext.TreeLogger logger
protected final com.google.gwt.core.ext.GeneratorContext context
protected final JacksonTypeOracle typeOracle
protected AbstractCreator(com.google.gwt.core.ext.TreeLogger logger,
com.google.gwt.core.ext.GeneratorContext context)
protected AbstractCreator(com.google.gwt.core.ext.TreeLogger logger,
com.google.gwt.core.ext.GeneratorContext context,
JacksonTypeOracle typeOracle)
protected static String getJavaObjectTypeFor(com.google.gwt.core.ext.typeinfo.JPrimitiveType type)
type - primitive typeprotected PrintWriter getPrintWriter(String packageName, String className)
protected com.google.gwt.user.rebind.SourceWriter getSourceWriter(PrintWriter printWriter, String packageName, String className, String superClass, String... interfaces)
protected String getQualifiedClassName(com.google.gwt.core.ext.typeinfo.JType type)
protected String getJsonSerializerFromType(com.google.gwt.core.ext.typeinfo.JType type) throws com.google.gwt.core.ext.UnableToCompleteException
JsonSerializer for the given type. If the type is a bean,
the implementation of AbstractBeanJsonSerializer will
be created.type - typeJsonSerializer. Examples:
com.google.gwt.core.ext.UnableToCompleteExceptionprotected String getJsonSerializerFromType(com.google.gwt.core.ext.typeinfo.JType type, PropertyInfo propertyInfo) throws com.google.gwt.core.ext.UnableToCompleteException
JsonSerializer for the given type. If the type is a bean,
the implementation of AbstractBeanJsonSerializer will
be created.type - typepropertyInfo - additionnal info to gives to the serializerJsonSerializer. Examples:
com.google.gwt.core.ext.UnableToCompleteExceptionprotected void generateIdentifierSerializationInfo(com.google.gwt.user.rebind.SourceWriter source,
com.google.gwt.core.ext.typeinfo.JClassType type,
BeanIdentityInfo identityInfo)
throws com.google.gwt.core.ext.UnableToCompleteException
com.google.gwt.core.ext.UnableToCompleteExceptionprotected String getKeySerializerFromType(com.google.gwt.core.ext.typeinfo.JType type) throws com.google.gwt.core.ext.UnableToCompleteException
KeySerializer for the given type.type - typeKeySerializer.com.google.gwt.core.ext.UnableToCompleteExceptionprotected String getJsonDeserializerFromType(com.google.gwt.core.ext.typeinfo.JType type) throws com.google.gwt.core.ext.UnableToCompleteException
JsonDeserializer for the given type. If the type is a bean,
the implementation of AbstractBeanJsonDeserializer will
be created.type - typecom.google.gwt.core.ext.UnableToCompleteExceptionprotected String getJsonDeserializerFromType(com.google.gwt.core.ext.typeinfo.JType type, PropertyInfo propertyInfo) throws com.google.gwt.core.ext.UnableToCompleteException
JsonDeserializer for the given type. If the type is a bean,
the implementation of AbstractBeanJsonDeserializer will
be created.type - typepropertyInfo - additionnal info to gives to the deserializercom.google.gwt.core.ext.UnableToCompleteExceptionprotected void generateIdentifierDeserializationInfo(com.google.gwt.user.rebind.SourceWriter source,
BeanInfo beanInfo,
BeanIdentityInfo identityInfo)
throws com.google.gwt.core.ext.UnableToCompleteException
com.google.gwt.core.ext.UnableToCompleteExceptionprotected void findIdPropertyInfo(Map<String,PropertyInfo> properties, com.google.gwt.thirdparty.guava.common.base.Optional<BeanIdentityInfo> identityInfo) throws com.google.gwt.core.ext.UnableToCompleteException
com.google.gwt.core.ext.UnableToCompleteExceptionprotected String getKeyDeserializerFromType(com.google.gwt.core.ext.typeinfo.JType type) throws com.google.gwt.core.ext.UnableToCompleteException
KeyDeserializer for the given type.type - typeKeyDeserializer.com.google.gwt.core.ext.UnableToCompleteExceptionprotected void generateSuperclassInfo(com.google.gwt.user.rebind.SourceWriter source,
BeanInfo beanInfo,
com.google.gwt.thirdparty.guava.common.base.Optional<BeanTypeInfo> typeInfo,
boolean serialization)
throws com.google.gwt.core.ext.UnableToCompleteException
com.google.gwt.core.ext.UnableToCompleteExceptionCopyright © 2013. All Rights Reserved.