public abstract class AbstractCreator
extends com.google.gwt.user.rebind.AbstractSourceCreator
| Modifier and Type | Field and Description |
|---|---|
protected RebindConfiguration |
configuration |
protected com.google.gwt.core.ext.GeneratorContext |
context |
protected static String |
JSON_DESERIALIZATION_CONTEXT_CLASS |
protected static String |
JSON_DESERIALIZER_CLASS |
protected static String |
JSON_SERIALIZATION_CONTEXT_CLASS |
protected static String |
JSON_SERIALIZER_CLASS |
protected com.google.gwt.core.ext.TreeLogger |
logger |
protected static String |
TYPE_PARAMETER_DESERIALIZER_FIELD_NAME |
protected static String |
TYPE_PARAMETER_SERIALIZER_FIELD_NAME |
protected JacksonTypeOracle |
typeOracle |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractCreator(com.google.gwt.core.ext.TreeLogger logger,
com.google.gwt.core.ext.GeneratorContext context,
RebindConfiguration configuration,
JacksonTypeOracle typeOracle) |
| Modifier and Type | Method and Description |
|---|---|
protected JDeserializerType |
getJsonDeserializerFromType(com.google.gwt.core.ext.typeinfo.JType type)
Build the string that instantiate a
JsonDeserializer for the given type. |
protected JSerializerType |
getJsonSerializerFromType(com.google.gwt.core.ext.typeinfo.JType type)
Build the string that instantiate a
JsonSerializer for the given type. |
protected JDeserializerType |
getKeyDeserializerFromType(com.google.gwt.core.ext.typeinfo.JType type)
Build the string that instantiate a
KeyDeserializer for the given type. |
protected JSerializerType |
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 com.google.gwt.user.rebind.SourceWriter |
getSourceWriter(PrintWriter printWriter,
String packageName,
String className,
String superClass,
String... interfaces) |
protected static final String JSON_DESERIALIZER_CLASS
protected static final String JSON_SERIALIZER_CLASS
protected static final String JSON_DESERIALIZATION_CONTEXT_CLASS
protected static final String JSON_SERIALIZATION_CONTEXT_CLASS
protected static final String TYPE_PARAMETER_DESERIALIZER_FIELD_NAME
protected static final String TYPE_PARAMETER_SERIALIZER_FIELD_NAME
protected final com.google.gwt.core.ext.TreeLogger logger
protected final com.google.gwt.core.ext.GeneratorContext context
protected final RebindConfiguration configuration
protected final JacksonTypeOracle typeOracle
protected AbstractCreator(com.google.gwt.core.ext.TreeLogger logger,
com.google.gwt.core.ext.GeneratorContext context,
RebindConfiguration configuration,
JacksonTypeOracle typeOracle)
protected 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 JSerializerType 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 JSerializerType 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 JDeserializerType 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 JDeserializerType 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.UnableToCompleteExceptionCopyright © 2014. All Rights Reserved.