Package com.blackrook.redis.struct
Interface TypeProfileFactory.MemberPolicy
-
- Enclosing class:
- TypeProfileFactory
public static interface TypeProfileFactory.MemberPolicy
An interface for figuring out whether to ignore certain fields or methods on an object that a profile is being generated for (if they are already going to pass testing for includable fields).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getAlias(Field field)
Gets an alias name for the provided field.String
getAlias(Method method)
Gets an alias name for the provided method.boolean
isIgnored(Field field)
Checks if a field is ignored by the profile generator.boolean
isIgnored(Method method)
Checks if a method is ignored by the profile generator.
-
-
-
Method Detail
-
isIgnored
boolean isIgnored(Field field)
Checks if a field is ignored by the profile generator.- Parameters:
field
- the field to test.- Returns:
- true if so, false if not.
-
isIgnored
boolean isIgnored(Method method)
Checks if a method is ignored by the profile generator.- Parameters:
method
- the method to test.- Returns:
- true if so, false if not.
-
getAlias
String getAlias(Field field)
Gets an alias name for the provided field. This is used for mapping this field to another name, usually for type/object conversions or the like.- Parameters:
field
- the field to use.- Returns:
- the name to use, or null for no alias.
-
-