Class GsonCompatibilityMode
java.lang.Object
com.jsoniter.spi.EmptyExtension
com.jsoniter.spi.Config
com.jsoniter.extra.GsonCompatibilityMode
- All Implemented Interfaces:
Extension
-
Nested Class Summary
Nested Classes -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected GsonCompatibilityMode.Builderbuilder()createDecoder(String cacheKey, Type type) Customize type decodingcreateEncoder(String cacheKey, Type type) Customize type encodingprotected OmitValuecreateOmitValue(Type valueType) protected JsonIgnoregetJsonIgnore(Annotation[] annotations) protected JsonPropertygetJsonProperty(Annotation[] annotations) voidUpdate how binding is done for the classMethods inherited from class Config
configName, copyBuilder, decodingMode, encodingMode, escapeUnicode, getAnnotation, getDecoderCacheKey, getEncoderCacheKey, getJsonCreator, getJsonUnwrapper, getJsonWrapper, indentionStep, omitDefaultValueMethods inherited from class EmptyExtension
canCreate, chooseImplementation, create
-
Method Details
-
builder
-
createOmitValue
- Overrides:
createOmitValuein classConfig
-
createEncoder
Description copied from interface:ExtensionCustomize type encoding- Specified by:
createEncoderin interfaceExtension- Overrides:
createEncoderin classEmptyExtension- Parameters:
cacheKey- name of the encodertype- change how to encode the type- Returns:
- null, if not special customization needed
-
createDecoder
Description copied from interface:ExtensionCustomize type decoding- Specified by:
createDecoderin interfaceExtension- Overrides:
createDecoderin classEmptyExtension- Parameters:
cacheKey- name of the decodertype- change how to decode the type- Returns:
- null, if no special customization needed
-
updateClassDescriptor
Description copied from interface:ExtensionUpdate how binding is done for the class- Specified by:
updateClassDescriptorin interfaceExtension- Overrides:
updateClassDescriptorin classConfig- Parameters:
desc- binding information
-
getJsonProperty
- Overrides:
getJsonPropertyin classConfig
-
getJsonIgnore
- Overrides:
getJsonIgnorein classConfig
-