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 java.lang.String |
JSON_DESERIALIZATION_CONTEXT_CLASS |
protected static java.lang.String |
JSON_DESERIALIZER_CLASS |
protected static java.lang.String |
JSON_SERIALIZATION_CONTEXT_CLASS |
protected static java.lang.String |
JSON_SERIALIZER_CLASS |
protected com.google.gwt.core.ext.TreeLogger |
logger |
protected static java.lang.String |
TYPE_PARAMETER_DESERIALIZER_FIELD_NAME |
protected static java.lang.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 JDeserializerType |
getJsonDeserializerFromType(com.google.gwt.core.ext.typeinfo.JType type,
boolean subtype)
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 JSerializerType |
getJsonSerializerFromType(com.google.gwt.core.ext.typeinfo.JType type,
boolean subtype)
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 abstract com.google.gwt.thirdparty.guava.common.base.Optional<BeanJsonMapperInfo> |
getMapperInfo() |
protected java.io.PrintWriter |
getPrintWriter(java.lang.String packageName,
java.lang.String className) |
protected com.google.gwt.user.rebind.SourceWriter |
getSourceWriter(java.io.PrintWriter printWriter,
java.lang.String packageName,
java.lang.String className,
java.lang.String superClass,
java.lang.String... interfaces) |
protected static final java.lang.String JSON_DESERIALIZER_CLASS
protected static final java.lang.String JSON_SERIALIZER_CLASS
protected static final java.lang.String JSON_DESERIALIZATION_CONTEXT_CLASS
protected static final java.lang.String JSON_SERIALIZATION_CONTEXT_CLASS
protected static final java.lang.String TYPE_PARAMETER_DESERIALIZER_FIELD_NAME
protected static final java.lang.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 java.io.PrintWriter getPrintWriter(java.lang.String packageName,
java.lang.String className)
protected com.google.gwt.user.rebind.SourceWriter getSourceWriter(java.io.PrintWriter printWriter,
java.lang.String packageName,
java.lang.String className,
java.lang.String superClass,
java.lang.String... interfaces)
protected abstract com.google.gwt.thirdparty.guava.common.base.Optional<BeanJsonMapperInfo> getMapperInfo()
protected JSerializerType getJsonSerializerFromType(com.google.gwt.core.ext.typeinfo.JType type) throws com.google.gwt.core.ext.UnableToCompleteException, UnsupportedTypeException
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.UnableToCompleteExceptionUnsupportedTypeExceptionprotected JSerializerType getJsonSerializerFromType(com.google.gwt.core.ext.typeinfo.JType type, boolean subtype) throws com.google.gwt.core.ext.UnableToCompleteException, UnsupportedTypeException
JsonSerializer for the given type. If the type is a bean,
the implementation of AbstractBeanJsonSerializer will
be created.type - typesubtype - true if the serializer is for a subtypeJsonSerializer. Examples:
com.google.gwt.core.ext.UnableToCompleteExceptionUnsupportedTypeExceptionprotected JSerializerType getKeySerializerFromType(com.google.gwt.core.ext.typeinfo.JType type) throws UnsupportedTypeException
KeySerializer for the given type.type - typeKeySerializer.UnsupportedTypeExceptionprotected JDeserializerType getJsonDeserializerFromType(com.google.gwt.core.ext.typeinfo.JType type) throws com.google.gwt.core.ext.UnableToCompleteException, UnsupportedTypeException
JsonDeserializer for the given type. If the type is a bean,
the implementation of AbstractBeanJsonDeserializer will
be created.type - typecom.google.gwt.core.ext.UnableToCompleteExceptionUnsupportedTypeExceptionprotected JDeserializerType getJsonDeserializerFromType(com.google.gwt.core.ext.typeinfo.JType type, boolean subtype) throws com.google.gwt.core.ext.UnableToCompleteException, UnsupportedTypeException
JsonDeserializer for the given type. If the type is a bean,
the implementation of AbstractBeanJsonDeserializer will
be created.type - typesubtype - true if the deserializer is for a subtypecom.google.gwt.core.ext.UnableToCompleteExceptionUnsupportedTypeExceptionprotected JDeserializerType getKeyDeserializerFromType(com.google.gwt.core.ext.typeinfo.JType type) throws UnsupportedTypeException
KeyDeserializer for the given type.type - typeKeyDeserializer.UnsupportedTypeExceptionCopyright © 2015. All Rights Reserved.