getDeclarationAsString

As getDeclarationAsString including the modifiers, the throws clause and the parameters with both type and name.

Return

String representation of declaration


open fun getDeclarationAsString(includingModifiers: Boolean, includingThrows: Boolean): String(source)

As getDeclarationAsString including the parameters with both type and name. The method declaration is returned without comment.

Return

String representation of declaration based on parameter flags

Parameters

includingModifiers

flag to include the modifiers (if present) in the string produced

includingThrows

flag to include the throws clause (if present) in the string produced


abstract fun getDeclarationAsString(includingModifiers: Boolean, includingThrows: Boolean, includingParameterName: Boolean): String(source)

A simple representation of the element declaration. It should fit one string.

Return

String representation of declaration based on parameter flags

Parameters

includingModifiers

flag to include the modifiers (if present) in the string produced

includingThrows

flag to include the throws clause (if present) in the string produced

includingParameterName

flag to include the parameter name (while the parameter type is always included) in the string produced