Interface Compiler

  • All Known Implementing Classes:
    SqlCompiler

    public interface Compiler
    A Compiler produces compiled code. Compiled code is produced as a String.

    Compiling never throws an exception, but instead returns prematurely. The compileOk() method indicates success or failure, and getErrorMessage() describes the error if compileOk() returns false.

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.String compile()
      Return the compiled code.
      boolean compileOk()
      Returns true if the compiled code is complete and compilation successful, false otherwise.
      java.lang.String getErrorMessage()
      This call is idempotent.
    • Method Detail

      • compile

        java.lang.String compile()
        Return the compiled code. This call is idempotent.
        Returns:
        the compiled code
      • compileOk

        boolean compileOk()
        Returns true if the compiled code is complete and compilation successful, false otherwise. This call is idempotent.
        Returns:
        true if the compiled code is complete and successful, false otherwise.
      • getErrorMessage

        java.lang.String getErrorMessage()
        This call is idempotent.
        Returns:
        a message indicating the error during the compilation if there was one.