Interface CodeGenContext

All Known Implementing Classes:
LoggingCodeGenContext

public interface CodeGenContext
Context for code generators.

Experimental API - subject to change.

  • Method Details

    • addClass

      JavaSourceWriterBuilder addClass(String pkgName, String className)
      Begin generating a new class.
      Parameters:
      pkgName -
      className -
      Returns:
      a JavaSourceWriterBuilder for the requested class or null if it could not be created, such as if it already exists
    • addClass

      JavaSourceWriterBuilder addClass(String superPath, String pkgName, String className)
      Begin generating a new class, possibly using GWT super-source.
      Parameters:
      superPath - super-source prefix, or null if a regular class
      pkgName -
      className -
      Returns:
      a JavaSourceWriterBuilder for the requested class or null if it could not be created, such as if it already exists
    • error

      void error(String msg)
      Log a fatal error during code generation.
      Parameters:
      msg -
    • error

      void error(String msg, Throwable cause)
      Log a fatal error during code generation.
      Parameters:
      msg -
      cause -
    • error

      void error(Throwable cause)
      Log a fatal error during code generation.
      Parameters:
      cause -
    • warn

      void warn(String msg)
      Log a non-fatal warning during code generation.
      Parameters:
      msg -
    • warn

      void warn(String msg, Throwable cause)
      Log a non-fatal warning during code generation.
      Parameters:
      msg -
      cause -
    • warn

      void warn(Throwable cause)
      Log a non-fatal warning during code generation.
      Parameters:
      cause -