Class ExcludePropertyPreFilter

  • All Implemented Interfaces:
    com.alibaba.fastjson2.filter.Filter , com.alibaba.fastjson2.filter.PropertyPreFilter

    
    public class ExcludePropertyPreFilter
     implements PropertyPreFilter
                        
    exclude the prop if
    * instance of class
    * name match regexp
    * name equal
    
    Since:

    2024-07-27

    Author:

    trydofor

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
      ExcludePropertyPreFilter(Object exclude)
      support exclude type,
      * Class - object is instance of
      * String - name equals
      * Pattern - name matches regexp
      * Collection - any of above type
      * Object[] - any of above type
      
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      boolean process(JSONWriter writer, Object source, String name)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ExcludePropertyPreFilter

        ExcludePropertyPreFilter(Object exclude)
        support exclude type,
        * Class - object is instance of
        * String - name equals
        * Pattern - name matches regexp
        * Collection - any of above type
        * Object[] - any of above type