Interface CompilationResult<T extends org.faktorips.codegen.CodeFragment>

Type Parameters:
T - a CodeFragment implementation for a specific target language
All Known Implementing Classes:
AbstractCompilationResult, CompilationResultImpl

public interface CompilationResult<T extends org.faktorips.codegen.CodeFragment>
The result of a compilation. The result consists of a list of messages generated during the compilation process. If no error has occurred (and thus none of the messages is an error message) the result contains the source code that represents the compiled expression along with the expression's Datatype.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns true if the compilation has failed, otherwise false.
    Returns the generated source code.
    org.faktorips.datatype.Datatype
    Returns the compiled expression's Datatype.
    org.faktorips.runtime.MessageList
    Returns the messages generated during compilation.
    boolean
    Returns true if the compilation was successful, otherwise false.
  • Method Details

    • getCodeFragment

      T getCodeFragment()
      Returns the generated source code.
    • getDatatype

      org.faktorips.datatype.Datatype getDatatype()
      Returns the compiled expression's Datatype.
    • getMessages

      org.faktorips.runtime.MessageList getMessages()
      Returns the messages generated during compilation.
    • successfull

      boolean successfull()
      Returns true if the compilation was successful, otherwise false.
    • failed

      boolean failed()
      Returns true if the compilation has failed, otherwise false. If the method returns true, there is a least one error Message in the message list.