Class SimplePropertyPreFilter

java.lang.Object
com.alibaba.fastjson2.filter.SimplePropertyPreFilter
All Implemented Interfaces:
Filter, PropertyPreFilter

public class SimplePropertyPreFilter extends Object implements PropertyPreFilter
  • Constructor Details

    • SimplePropertyPreFilter

      public SimplePropertyPreFilter(String... properties)
    • SimplePropertyPreFilter

      public SimplePropertyPreFilter(Class<?> clazz, String... properties)
  • Method Details

    • getMaxLevel

      public int getMaxLevel()
      Since:
      1.2.9
    • setMaxLevel

      public void setMaxLevel(int maxLevel)
      Since:
      1.2.9
    • getClazz

      public Class<?> getClazz()
    • getIncludes

      public Set<String> getIncludes()
    • getExcludes

      public Set<String> getExcludes()
    • process

      public boolean process(JSONWriter writer, Object source, String name)
      Specified by:
      process in interface PropertyPreFilter