Annotation Interface PrintOpts
Interface used to define the behavior of the object when printing its content dynamically.
This prevents elements that you don't want to expose or some sensitive property from being printed.
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionbooleanOption to give access to the getter elements of an instance.Prefix regular expression indicating which methods will be accessible by nameSuffix regular expression indicating which methods will be accessible by namebooleanOption to give access to the internal elements of an instance.booleanRecursively traverses the inheritance tree until it reaches the root class.booleanPrint instance short name
-
Element Details
-
shortName
boolean shortNamePrint instance short name- Returns:
- short name status
- Default:
- true
-
recursive
boolean recursiveRecursively traverses the inheritance tree until it reaches the root class.- Returns:
- recursive status
- Default:
- false
-
privateFieldsAccess
boolean privateFieldsAccessOption to give access to the internal elements of an instance.- Returns:
trueif inner elements can be accessed orfalseotherwise
- Default:
- false
-
getterAccess
boolean getterAccessOption to give access to the getter elements of an instance.- Returns:
trueif getter elements can be accessed orfalseotherwise
- Default:
- false
-
getterPrefix
Prefix regular expression indicating which methods will be accessible by name- Returns:
- the regular expression to identify all valid methods
- Default:
- "^(get|is)"
-
getterSuffix
Suffix regular expression indicating which methods will be accessible by name- Returns:
- the regular expression to identify all valid methods
- Default:
- ""
-