Package org.faktorips.fl
Interface CompilationResult<T extends org.faktorips.codegen.CodeFragment>
- Type Parameters:
T- aCodeFragmentimplementation 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 TypeMethodDescriptionbooleanfailed()Returnstrueif the compilation has failed, otherwisefalse.Returns the generated source code.org.faktorips.datatype.DatatypeReturns the compiled expression'sDatatype.org.faktorips.runtime.MessageListReturns the messages generated during compilation.booleanReturnstrueif the compilation was successful, otherwisefalse.
-
Method Details
-
getCodeFragment
T getCodeFragment()Returns the generated source code. -
getDatatype
org.faktorips.datatype.Datatype getDatatype()Returns the compiled expression'sDatatype. -
getMessages
org.faktorips.runtime.MessageList getMessages()Returns the messages generated during compilation. -
successfull
boolean successfull()Returnstrueif the compilation was successful, otherwisefalse. -
failed
boolean failed()Returnstrueif the compilation has failed, otherwisefalse. If the method returnstrue, there is a least one errorMessagein themessage list.
-