Package com.alibaba.fastjson2.filter
Class SimplePropertyPreFilter
- java.lang.Object
-
- com.alibaba.fastjson2.filter.SimplePropertyPreFilter
-
- All Implemented Interfaces:
Filter,PropertyPreFilter
public class SimplePropertyPreFilter extends Object implements PropertyPreFilter
-
-
Constructor Summary
Constructors Constructor Description SimplePropertyPreFilter(Class<?> clazz, String... properties)SimplePropertyPreFilter(String... properties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<?>getClazz()Set<String>getExcludes()Set<String>getIncludes()intgetMaxLevel()booleanprocess(JSONWriter writer, Object source, String name)voidsetMaxLevel(int maxLevel)
-
-
-
Method Detail
-
getMaxLevel
public int getMaxLevel()
- Since:
- 1.2.9
-
setMaxLevel
public void setMaxLevel(int maxLevel)
- Since:
- 1.2.9
-
getClazz
public Class<?> getClazz()
-
process
public boolean process(JSONWriter writer, Object source, String name)
- Specified by:
processin interfacePropertyPreFilter
-
-