Class TypeRenderer

  • All Implemented Interfaces:

    
    public abstract class TypeRenderer
    
                        

    Renders literals like Types.newParameterizedType(List::class.java, String::class.java). Rendering is pluggable so that type variables can either be resolved or emitted as other code blocks.

    • Constructor Summary

      Constructors 
      Constructor Description
      TypeRenderer()
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract CodeBlock renderTypeVariable(TypeVariableName typeVariable)
      final CodeBlock render(TypeName typeName, Boolean forceBox)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TypeRenderer

        TypeRenderer()
    • Method Detail

      • renderTypeVariable

         abstract CodeBlock renderTypeVariable(TypeVariableName typeVariable)
      • render

         final CodeBlock render(TypeName typeName, Boolean forceBox)