public class TypeParamDef extends AttributeSupport implements Renderable
ALSO_IMPORT, DEFAULT_VALUE, INIT, INIT_FUNCTION, LAZY_INIT| Constructor and Description |
|---|
TypeParamDef(String name,
List<ClassRef> bounds,
Map<AttributeKey,Object> attributes) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
List<ClassRef> |
getBounds() |
String |
getName() |
int |
hashCode() |
String |
render()
Render the type into a
String for the purpose of code generation. |
TypeParamRef |
toReference() |
String |
toString() |
getAttribute, getAttributes, hasAttributeclone, finalize, getClass, notify, notifyAll, wait, wait, waitrenderpublic String getName()
public TypeParamRef toReference()
public String render()
RenderableString 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.render in interface RenderableString representation of the object as it's meant to appear in the generated code.Copyright © 2023. All rights reserved.