Package com.jsoniter.spi
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.Builder
private final String
static final Config
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Config.Builder
builder()
protected OmitValue
createOmitValue
(Type valueType) private void
detectCtor
(ClassDescriptor desc) private void
detectStaticFactory
(ClassDescriptor desc, List<Method> allMethods) private void
detectUnwrappers
(ClassDescriptor desc, List<Method> allMethods) private void
detectWrappers
(ClassDescriptor desc, List<Method> allMethods) boolean
protected static <T extends Annotation>
TgetAnnotation
(Annotation[] annotations, Class<T> annotationClass) getDecoderCacheKey
(Type type) getEncoderCacheKey
(Type type) protected JsonCreator
getJsonCreator
(Annotation[] annotations) protected JsonIgnore
getJsonIgnore
(Annotation[] annotations) protected JsonProperty
getJsonProperty
(Annotation[] annotations) protected JsonUnwrapper
getJsonUnwrapper
(Annotation[] annotations) protected JsonWrapper
getJsonWrapper
(Annotation[] annotations) private String[]
getParamNames
(Object obj, int paramCount) int
boolean
private Object
reflectCall
(Object obj, String methodName, Object... args) private void
private void
updateBindingWithJsonProperty
(Binding binding, JsonProperty jsonProperty) void
Update how binding is done for the classMethods inherited from class com.jsoniter.spi.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:Extension
Update how binding is done for the class- Specified by:
updateClassDescriptor
in interfaceExtension
- Overrides:
updateClassDescriptor
in classEmptyExtension
- Parameters:
desc
- binding information
-
detectUnwrappers
-
detectWrappers
-
getParamNames
-
reflectCall
- Throws:
Exception
-
detectStaticFactory
-
detectCtor
-
updateBindings
-
updateBindingWithJsonProperty
-
createOmitValue
-
getJsonWrapper
-
getJsonUnwrapper
-
getJsonCreator
-
getJsonProperty
-
getJsonIgnore
-
getAnnotation
protected static <T extends Annotation> T getAnnotation(Annotation[] annotations, Class<T> annotationClass)
-