public class FieldDumper extends Object implements Dumper<Field>
Field.
It provides methods to dump the field's information in a formatted string representation.| Constructor and Description |
|---|
FieldDumper() |
| Modifier and Type | Method and Description |
|---|---|
String |
dump(Field field)
Returns a formatted string representation of a Field.
|
TypeDisplayNameFormat |
getTypeDisplay()
Gets the display format for the type of the Field.
|
boolean |
isIncludeModifiers()
Returns whether to include modifiers in the dumped string representation of a Field object.
|
boolean |
isIncludeName()
Returns whether to include the name in the dumped string representation of a Field object.
|
FieldDumper |
setIncludeModifiers(boolean includeModifiers)
Sets whether to include modifiers in the dumped string representation of a Field object.
|
FieldDumper |
setIncludeName(boolean includeName)
Sets whether to include the name in the dumped string representation of a Field object.
|
FieldDumper |
setTypeDisplay(TypeDisplayNameFormat typeDisplay)
Sets the display format for the return type of the Field.
|
public boolean isIncludeModifiers()
public FieldDumper setIncludeModifiers(boolean includeModifiers)
includeModifiers - true if modifiers should be included, false otherwisepublic TypeDisplayNameFormat getTypeDisplay()
public FieldDumper setTypeDisplay(TypeDisplayNameFormat typeDisplay)
typeDisplay - the display format for the typepublic boolean isIncludeName()
public FieldDumper setIncludeName(boolean includeName)
includeName - true if the name should be included, false otherwiseCopyright © 2024. All rights reserved.