Package io.sundr.model
Class WildcardRef
- java.lang.Object
-
- io.sundr.model.AttributeSupport
-
- io.sundr.model.TypeRef
-
- io.sundr.model.WildcardRef
-
- All Implemented Interfaces:
Attributeable,Node,Renderable
public class WildcardRef extends TypeRef
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWildcardRef.BoundKind
-
Field Summary
-
Fields inherited from interface io.sundr.model.Attributeable
ALSO_IMPORT, DEFAULT_VALUE, INIT, INIT_FUNCTION, LAZY_INIT
-
Fields inherited from interface io.sundr.model.Node
AT, CB, CC, CLP, COLN, COMA, CP, DOT, DQ, EMPTY, EQ, EXTENDS, GT, IMPLEMENTS, INDENT, JAVA_LANG, JAVA_LANG_ENUM, JAVA_LANG_OBJECT, JAVA_LANG_STRING, LT, NEWLINE, NEWLINE_PATTERN, OB, OC, OP, Q, SEMICOLN, SEMICOLN_SUFFIX_PATTERN, SPACE, STAR, THROWS, VARARG
-
-
Constructor Summary
Constructors Constructor Description WildcardRef()WildcardRef(WildcardRef.BoundKind boundKind, List<TypeRef> bounds, Map<AttributeKey,Object> attributes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WildcardRef.BoundKindgetBoundKind()List<TypeRef>getBounds()intgetDimensions()StringgetName()Stringrender()Render the type into aStringfor the purpose of code generation.StringtoString()TypeRefwithDimensions(int dimensions)-
Methods inherited from class io.sundr.model.AttributeSupport
getAttribute, getAttributes, hasAttribute
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.sundr.model.Renderable
tab
-
-
-
-
Constructor Detail
-
WildcardRef
public WildcardRef()
-
WildcardRef
public WildcardRef(WildcardRef.BoundKind boundKind, List<TypeRef> bounds, Map<AttributeKey,Object> attributes)
-
-
Method Detail
-
getBoundKind
public WildcardRef.BoundKind getBoundKind()
-
getDimensions
public int getDimensions()
- Specified by:
getDimensionsin classTypeRef
-
withDimensions
public TypeRef withDimensions(int dimensions)
- Specified by:
withDimensionsin classTypeRef
-
render
public String render()
Description copied from interface:RenderableRender the type into aStringfor 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.- Returns:
- the
Stringrepresentation of the object as it's meant to appear in the generated code.
-
-