Interface Renderer<T>

All Known Implementing Classes:
TypeDefRenderer

public interface Renderer<T>
The part of the CodeGenerator that renders an instance of <T> into a String.
  • Method Details

    • getType

      Class<T> getType()
      The type of items this Renderer supports.
      Returns:
      the item class
    • getFunction

      Function<T,String> getFunction()
    • render

      default String render(T item)
      The rendering method.
      Parameters:
      item - the item to render
      Returns:
      the String representation of the item.