Class WildcardRef

All Implemented Interfaces:
Attributeable, Node, Renderable

public class WildcardRef extends TypeRef
  • Constructor Details

  • Method Details

    • getName

      public String getName()
      Specified by:
      getName in class TypeRef
    • getBounds

      public List<TypeRef> getBounds()
    • getBoundKind

      public WildcardRef.BoundKind getBoundKind()
    • getDimensions

      public int getDimensions()
      Specified by:
      getDimensions in class TypeRef
    • withDimensions

      public TypeRef withDimensions(int dimensions)
      Specified by:
      withDimensions in class TypeRef
    • render

      public String render()
      Description copied from interface: Renderable
      Render the type into a 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.
      Returns:
      the String representation of the object as it's meant to appear in the generated code.
    • toString

      public String toString()
      Overrides:
      toString in class Object