Class AbstractListFunction

All Implemented Interfaces:
FlFunction<org.faktorips.codegen.JavaCodeFragment>, FunctionSignature
Direct Known Subclasses:
MinMaxList, SumList

public abstract class AbstractListFunction extends AbstractFlFunction
  • Constructor Details

  • Method Details

    • compile

      public CompilationResult<org.faktorips.codegen.JavaCodeFragment> compile(CompilationResult<org.faktorips.codegen.JavaCodeFragment>[] argResults)
      Description copied from interface: FlFunction
      Generates the source code for the function given the compilation results for 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 CompilationResult with an error if the element data type is illegal. Returns null or 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)