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