Class AnnotationExclusionStrategy
java.lang.Object
com.alibaba.dashscope.applications.agentstudio.utils.AnnotationExclusionStrategy
- All Implemented Interfaces:
com.google.gson.ExclusionStrategy
public class AnnotationExclusionStrategy
extends Object
implements com.google.gson.ExclusionStrategy
Excludes fields annotated with
GsonExclude from Gson serialization.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanshouldSkipClass(Class<?> clazz) booleanshouldSkipField(com.google.gson.FieldAttributes f)
-
Constructor Details
-
AnnotationExclusionStrategy
public AnnotationExclusionStrategy()
-
-
Method Details
-
shouldSkipField
public boolean shouldSkipField(com.google.gson.FieldAttributes f) - Specified by:
shouldSkipFieldin interfacecom.google.gson.ExclusionStrategy
-
shouldSkipClass
- Specified by:
shouldSkipClassin interfacecom.google.gson.ExclusionStrategy
-