Class CodeWriter

java.lang.Object
org.teavm.backend.c.generate.CodeWriter
Direct Known Subclasses:
BufferedCodeWriter

public abstract class CodeWriter extends Object
  • Constructor Details

    • CodeWriter

      public CodeWriter()
  • Method Details

    • fragment

      public abstract CodeWriter fragment()
    • println

      public CodeWriter println()
    • println

      public CodeWriter println(String string)
    • print

      public CodeWriter print(String string)
    • indent

      public CodeWriter indent()
    • outdent

      public CodeWriter outdent()
    • printType

      public CodeWriter printType(ValueType type)
    • printStrictType

      public CodeWriter printStrictType(ValueType type)
    • strictTypeAsString

      public static String strictTypeAsString(ValueType type)
    • typeAsString

      public static String typeAsString(ValueType type)
    • printType

      public CodeWriter printType(VariableType type)
    • newLine

      protected abstract void newLine()
    • append

      protected abstract void append(String text)
    • indentBy

      protected abstract void indentBy(int amount)
    • flush

      public abstract void flush()
    • source

      public abstract void source(String fileName, int lineNumber)
    • nosource

      public abstract void nosource()