public class ConstructorDumper extends Object implements Dumper<Constructor<?>>
Constructor.
It provides methods to dump the constructor's information in a formatted string representation.| Constructor and Description |
|---|
ConstructorDumper() |
| Modifier and Type | Method and Description |
|---|---|
String |
dump(Constructor<?> constructor)
Returns a formatted string representation of a Constructor.
|
TypeDisplayNameFormat |
getParameterTypeDisplay()
Gets the display format for the parameter types of the Constructor.
|
boolean |
isIncludeModifiers()
Returns whether to include modifiers in the dumped string representation of a Constructor.
|
ConstructorDumper |
setIncludeModifiers(boolean includeModifiers)
Sets whether to include modifiers in the dumped string representation of a Constructor.
|
ConstructorDumper |
setParameterTypeDisplay(TypeDisplayNameFormat parameterTypeDisplay)
Sets the display format for the parameter types of the Constructor.
|
public boolean isIncludeModifiers()
public ConstructorDumper setIncludeModifiers(boolean includeModifiers)
includeModifiers - true if modifiers should be included, false otherwisepublic TypeDisplayNameFormat getParameterTypeDisplay()
public ConstructorDumper setParameterTypeDisplay(TypeDisplayNameFormat parameterTypeDisplay)
parameterTypeDisplay - the display format for the parameter typespublic String dump(Constructor<?> constructor)
dump in interface Dumper<Constructor<?>>constructor - The Constructor to dumpCopyright © 2024. All rights reserved.