public class WildcardRef extends TypeRef
| Modifier and Type | Class and Description |
|---|---|
static class |
WildcardRef.BoundKind |
ALSO_IMPORT, DEFAULT_VALUE, INIT, INIT_FUNCTION, LAZY_INIT| Constructor and Description |
|---|
WildcardRef() |
WildcardRef(WildcardRef.BoundKind boundKind,
List<TypeRef> bounds,
Map<AttributeKey,Object> attributes) |
| Modifier and Type | Method and Description |
|---|---|
WildcardRef.BoundKind |
getBoundKind() |
List<TypeRef> |
getBounds() |
int |
getDimensions() |
String |
getName() |
String |
render(TypeDef enclosing)
Render the type into a
String for the purpose of code generation. |
String |
toString() |
TypeRef |
withDimensions(int dimensions) |
getAttribute, getAttributes, hasAttributeclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitrenderpublic WildcardRef()
public WildcardRef(WildcardRef.BoundKind boundKind, List<TypeRef> bounds, Map<AttributeKey,Object> attributes)
public WildcardRef.BoundKind getBoundKind()
public int getDimensions()
getDimensions in class TypeRefpublic TypeRef withDimensions(int dimensions)
withDimensions in class TypeRefpublic String render(TypeDef enclosing)
RenderableString 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.enclosing - 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.