public interface Renderable
| Modifier and Type | Method and Description |
|---|---|
default String |
render()
Render the type into a
String for the purpose of code generation. |
default String |
render(TypeDef enclosingType)
Render the type into a
String for the purpose of code generation. |
default String render()
String for the purpose of code generation.
This is slightly different from the `toString()` method as `toString()` is mostly needed for logging / debugging and should
be idempotent.
Regarding idempotency this method may yield different result based on the context it is used even if the internal state of
the object does not change.
An example of such case, is a reference to class that may change based on the package from which it's refenced.String representation of the object as it's meant to appear in the generated code.default String render(TypeDef enclosingType)
String for the purpose of code generation.
This is slightly different from the `toString()` method as `toString()` is mostly needed for logging / debugging.
In contrast with its no-arg equivallent this method is idempotent.enclosingType - The type that encoses the current Renderable.String representation of the object as it's meant to appear in the generated code.Copyright © 2023. All rights reserved.