-
- All Known Implementing Classes:
SqlCompiler
public interface CompilerACompilerproduces compiled code. Compiled code is produced as aString.Compiling never throws an exception, but instead returns prematurely. The
compileOk()method indicates success or failure, andgetErrorMessage()describes the error ifcompileOk()returnsfalse.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Stringcompile()Return the compiled code.booleancompileOk()Returnstrueif the compiled code is complete and compilation successful,falseotherwise.java.lang.StringgetErrorMessage()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()
Returnstrueif the compiled code is complete and compilation successful,falseotherwise. This call is idempotent.- Returns:
trueif 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.
-
-