Class BasicFiledFilter
java.lang.Object
net.minidev.asm.BasicFiledFilter
- All Implemented Interfaces:
FieldFilter
A basic implementation of the
FieldFilter interface that permits all operations on fields.
This implementation returns true for all checks, indicating that any field can be used, read, and written.
It serves as a default or fallback strategy when no specific field filtering logic is required.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BasicFiledFilterA singleton instance ofBasicFieldFilter. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanAlways allows reading the specified field.booleanAlways allows using the specified field.booleanAlways allows using the specified field in conjunction with a method.booleanAlways allows writing to the specified field.
-
Field Details
-
SINGLETON
A singleton instance ofBasicFieldFilter. Since the filter does not maintain any state and allows all operations, it can be reused across the application.
-
-
Constructor Details
-
BasicFiledFilter
public BasicFiledFilter()default constructor
-
-
Method Details
-
canUse
Always allows using the specified field.- Specified by:
canUsein interfaceFieldFilter- Parameters:
field- The field to check.- Returns:
- Always returns
true.
-
canUse
Always allows using the specified field in conjunction with a method.- Specified by:
canUsein interfaceFieldFilter- Parameters:
field- The field to check.method- The method to check. This parameter is not used in the current implementation.- Returns:
- Always returns
true.
-
canRead
Always allows reading the specified field.- Specified by:
canReadin interfaceFieldFilter- Parameters:
field- The field to check.- Returns:
- Always returns
true.
-
canWrite
Always allows writing to the specified field.- Specified by:
canWritein interfaceFieldFilter- Parameters:
field- The field to check.- Returns:
- Always returns
true.
-