Package org.faktorips.fl
Class CompilationResultImpl
java.lang.Object
org.faktorips.fl.AbstractCompilationResult<org.faktorips.codegen.JavaCodeFragment>
org.faktorips.fl.CompilationResultImpl
- All Implemented Interfaces:
CompilationResult<org.faktorips.codegen.JavaCodeFragment>
public class CompilationResultImpl
extends AbstractCompilationResult<org.faktorips.codegen.JavaCodeFragment>
Implementation of the CompilationResult interface for
Java code.-
Constructor Summary
ConstructorsConstructorDescriptionCreates a newCompilationResult.CompilationResultImpl(String sourcecode, org.faktorips.datatype.Datatype datatype) Creates aCompilationResultthat contains the given source code andDatatype.CompilationResultImpl(org.faktorips.codegen.JavaCodeFragment sourcecode, org.faktorips.datatype.Datatype datatype) CompilationResultImpl(org.faktorips.codegen.JavaCodeFragment sourcecode, org.faktorips.datatype.Datatype datatype, org.faktorips.runtime.MessageList messages) Creates aCompilationResultwith the given parameters.CompilationResultImpl(org.faktorips.runtime.Message message) Creates aCompilationResultthat contains the givenMessage. -
Method Summary
Modifier and TypeMethodDescriptionstatic final CompilationResult<org.faktorips.codegen.JavaCodeFragment>newResultUndefinedIdentifier(Locale locale, String identifier) Creates a newCompilationResult, that contains aMessagethat the given identifier is undefined.voidsetJavaCodeFragment(org.faktorips.codegen.JavaCodeFragment javaCodeFragment) Sets the code fragment.Methods inherited from class org.faktorips.fl.AbstractCompilationResult
add, addCodeFragment, addCodeFragment, addMessage, addMessages, equals, failed, getCodeFragment, getDatatype, getDatatypes, getMessages, hashCode, setCodeFragment, setDatatype, successfull, toString
-
Constructor Details
-
CompilationResultImpl
public CompilationResultImpl(org.faktorips.codegen.JavaCodeFragment sourcecode, org.faktorips.datatype.Datatype datatype, org.faktorips.runtime.MessageList messages) Creates aCompilationResultwith the given parameters. -
CompilationResultImpl
public CompilationResultImpl(org.faktorips.codegen.JavaCodeFragment sourcecode, org.faktorips.datatype.Datatype datatype) -
CompilationResultImpl
Creates aCompilationResultthat contains the given source code andDatatype.- Throws:
IllegalArgumentException- if eithersourcecodeordatatypeisnull.
-
CompilationResultImpl
public CompilationResultImpl(org.faktorips.runtime.Message message) Creates aCompilationResultthat contains the givenMessage.- Throws:
IllegalArgumentException- ifmessageisnull.
-
CompilationResultImpl
public CompilationResultImpl()Creates a newCompilationResult.
-
-
Method Details
-
newResultUndefinedIdentifier
public static final CompilationResult<org.faktorips.codegen.JavaCodeFragment> newResultUndefinedIdentifier(Locale locale, String identifier) Creates a newCompilationResult, that contains aMessagethat the given identifier is undefined. This method is intended to be used by implementations ofIdentifierResolver. -
setJavaCodeFragment
public void setJavaCodeFragment(org.faktorips.codegen.JavaCodeFragment javaCodeFragment) Sets the code fragment.
-