Class Config
java.lang.Object
com.jsoniter.spi.EmptyExtension
com.jsoniter.spi.Config
- All Implemented Interfaces:
Extension
- Direct Known Subclasses:
GsonCompatibilityMode, JacksonCompatibilityMode
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Config.Builderprivate final Stringstatic final Config -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Config.Builderbuilder()protected OmitValuecreateOmitValue(Type valueType) private voiddetectCtor(ClassDescriptor desc) private voiddetectStaticFactory(ClassDescriptor desc, List<Method> allMethods) private voiddetectUnwrappers(ClassDescriptor desc, List<Method> allMethods) private voiddetectWrappers(ClassDescriptor desc, List<Method> allMethods) booleanprotected static <T extends Annotation>
TgetAnnotation(Annotation[] annotations, Class<T> annotationClass) getDecoderCacheKey(Type type) getEncoderCacheKey(Type type) protected JsonCreatorgetJsonCreator(Annotation[] annotations) protected JsonIgnoregetJsonIgnore(Annotation[] annotations) protected JsonPropertygetJsonProperty(Annotation[] annotations) protected JsonUnwrappergetJsonUnwrapper(Annotation[] annotations) protected JsonWrappergetJsonWrapper(Annotation[] annotations) private String[]getParamNames(Object obj, int paramCount) intbooleanprivate ObjectreflectCall(Object obj, String methodName, Object... args) private voidprivate voidupdateBindingWithJsonProperty(Binding binding, JsonProperty jsonProperty) voidUpdate how binding is done for the classMethods inherited from class EmptyExtension
canCreate, chooseImplementation, create, createDecoder, createEncoder
-
Field Details
-
configName
-
builder
-
configs
-
decoderCacheKeys
-
encoderCacheKeys
-
primitiveOmitValues
-
INSTANCE
-
-
Constructor Details
-
Config
-
-
Method Details
-
configName
-
getDecoderCacheKey
-
getEncoderCacheKey
-
decodingMode
-
builder
-
copyBuilder
-
indentionStep
public int indentionStep() -
omitDefaultValue
public boolean omitDefaultValue() -
escapeUnicode
public boolean escapeUnicode() -
encodingMode
-
updateClassDescriptor
Description copied from interface:ExtensionUpdate how binding is done for the class- Specified by:
updateClassDescriptorin interfaceExtension- Overrides:
updateClassDescriptorin classEmptyExtension- Parameters:
desc- binding information
-
detectUnwrappers
-
detectWrappers
-
getParamNames
-
reflectCall
-
detectStaticFactory
-
detectCtor
-
updateBindings
-
updateBindingWithJsonProperty
-
createOmitValue
-
getJsonWrapper
-
getJsonUnwrapper
-
getJsonCreator
-
getJsonProperty
-
getJsonIgnore
-
getAnnotation
protected static <T extends Annotation> T getAnnotation(Annotation[] annotations, Class<T> annotationClass)
-