Package org.faktorips.fl.functions
Class AbstractListFunction
java.lang.Object
org.faktorips.fl.FunctionSignatureImpl
org.faktorips.fl.functions.AbstractBaseFlFunction<org.faktorips.codegen.JavaCodeFragment>
org.faktorips.fl.functions.AbstractFlFunction
org.faktorips.fl.functions.AbstractListFunction
- All Implemented Interfaces:
FlFunction<org.faktorips.codegen.JavaCodeFragment>,FunctionSignature
- Direct Known Subclasses:
MinMaxList,SumList
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractListFunction(String name, String description, FunctionSignatures signature) -
Method Summary
Modifier and TypeMethodDescriptionCompilationResult<org.faktorips.codegen.JavaCodeFragment>compile(CompilationResult<org.faktorips.codegen.JavaCodeFragment>[] argResults) Generates thesource codefor the function given thecompilation resultsfor the arguments.protected CompilationResultImplcreateCompilationResult(CompilationResult<org.faktorips.codegen.JavaCodeFragment> listArgument, org.faktorips.codegen.JavaCodeFragment fragment) protected CompilationResult<org.faktorips.codegen.JavaCodeFragment>generateFunctionCall(CompilationResultImpl argument1, CompilationResultImpl argument2) protected CompilationResult<org.faktorips.codegen.JavaCodeFragment>generateFunctionCode(CompilationResult<org.faktorips.codegen.JavaCodeFragment> listArgument) protected abstract org.faktorips.codegen.JavaCodeFragmentgenerateReturnFallBackValueCall(org.faktorips.datatype.Datatype datatype) protected org.faktorips.datatype.DatatypegetBasicType(CompilationResult<org.faktorips.codegen.JavaCodeFragment> listArgument) protected AbstractCompilationResult<org.faktorips.codegen.JavaCodeFragment>getListArgument(CompilationResult<org.faktorips.codegen.JavaCodeFragment>[] argResults) protected CompilationResult<org.faktorips.codegen.JavaCodeFragment>validateBasicDatatype(org.faktorips.datatype.Datatype basicDatatype) Methods inherited from class org.faktorips.fl.functions.AbstractFlFunction
getCompiler, getDatatypeHelper, getJavaClassName, setCompilerMethods inherited from class org.faktorips.fl.functions.AbstractBaseFlFunction
getDescription, setCompiler, setDescriptionMethods inherited from class org.faktorips.fl.FunctionSignatureImpl
getArgTypes, getName, getType, hasVarArgs, isSame, match, matchUsingConversion, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.faktorips.fl.FunctionSignature
getArgTypes, getName, getType, hasVarArgs, isSame, match, matchUsingConversion
-
Constructor Details
-
AbstractListFunction
-
-
Method Details
-
compile
public CompilationResult<org.faktorips.codegen.JavaCodeFragment> compile(CompilationResult<org.faktorips.codegen.JavaCodeFragment>[] argResults) Description copied from interface:FlFunctionGenerates thesource codefor the function given thecompilation resultsfor the arguments. -
getListArgument
protected AbstractCompilationResult<org.faktorips.codegen.JavaCodeFragment> getListArgument(CompilationResult<org.faktorips.codegen.JavaCodeFragment>[] argResults) -
validateBasicDatatype
protected CompilationResult<org.faktorips.codegen.JavaCodeFragment> validateBasicDatatype(org.faktorips.datatype.Datatype basicDatatype) - Parameters:
basicDatatype- The data type of the elements in the list this function processes.- Returns:
- a
CompilationResultwith an error if the element data type is illegal. Returnsnullor an error free compilation result if the data type is valid.
-
generateFunctionCode
protected CompilationResult<org.faktorips.codegen.JavaCodeFragment> generateFunctionCode(CompilationResult<org.faktorips.codegen.JavaCodeFragment> listArgument) -
generateReturnFallBackValueCall
protected abstract org.faktorips.codegen.JavaCodeFragment generateReturnFallBackValueCall(org.faktorips.datatype.Datatype datatype) -
generateFunctionCall
protected CompilationResult<org.faktorips.codegen.JavaCodeFragment> generateFunctionCall(CompilationResultImpl argument1, CompilationResultImpl argument2) -
createCompilationResult
protected CompilationResultImpl createCompilationResult(CompilationResult<org.faktorips.codegen.JavaCodeFragment> listArgument, org.faktorips.codegen.JavaCodeFragment fragment) -
getBasicType
protected org.faktorips.datatype.Datatype getBasicType(CompilationResult<org.faktorips.codegen.JavaCodeFragment> listArgument)
-