Package com.alibaba.fastjson2.filter
Class ContextAutoTypeBeforeHandler
- java.lang.Object
-
- com.alibaba.fastjson2.filter.ContextAutoTypeBeforeHandler
-
- All Implemented Interfaces:
Filter,JSONReader.AutoTypeBeforeHandler
public class ContextAutoTypeBeforeHandler extends Object implements JSONReader.AutoTypeBeforeHandler
-
-
Constructor Summary
Constructors Constructor Description ContextAutoTypeBeforeHandler(boolean includeBasic)ContextAutoTypeBeforeHandler(boolean includeBasic, Class... types)ContextAutoTypeBeforeHandler(boolean includeBasic, String... acceptNames)ContextAutoTypeBeforeHandler(Class... types)ContextAutoTypeBeforeHandler(String... acceptNames)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<?>apply(long typeNameHash, Class<?> expectClass, long features)Class<?>apply(String typeName, Class<?> expectClass, long features)
-
-
-
Constructor Detail
-
ContextAutoTypeBeforeHandler
public ContextAutoTypeBeforeHandler(Class... types)
-
ContextAutoTypeBeforeHandler
public ContextAutoTypeBeforeHandler(boolean includeBasic, Class... types)
-
ContextAutoTypeBeforeHandler
public ContextAutoTypeBeforeHandler(String... acceptNames)
-
ContextAutoTypeBeforeHandler
public ContextAutoTypeBeforeHandler(boolean includeBasic)
-
ContextAutoTypeBeforeHandler
public ContextAutoTypeBeforeHandler(boolean includeBasic, String... acceptNames)
-
-
Method Detail
-
apply
public Class<?> apply(long typeNameHash, Class<?> expectClass, long features)
- Specified by:
applyin interfaceJSONReader.AutoTypeBeforeHandler
-
apply
public Class<?> apply(String typeName, Class<?> expectClass, long features)
- Specified by:
applyin interfaceJSONReader.AutoTypeBeforeHandler
-
-