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

Type Parameters:
T - a CodeFragment implementation for a specific target language
All Known Implementing Classes:
AssociationNavigationFunctionsResolver, DefaultFunctionResolver, ExcelFunctionsResolver, LocalizedFunctionsResolver

public interface FunctionResolver<T extends org.faktorips.codegen.CodeFragment>
Resolves function calls used in an expression, e.g. ROUND(2.34; 2). The resolver receives as arguments the name of the called function along with the compilation results the compiler has generated for the arguments. For the above function call, the resolver would receive the name 'ROUND' and a CompilationResult[2] array. The first result would contain the source code to create a decimal value of 2.34, the result's data type would be Decimal. The second result would contain the source code to create a integer value of 2 and the result's data type would be Integer.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the functions that are supported by this resolver.
  • Method Details

    • getFunctions

      FlFunction<T>[] getFunctions()
      Returns the functions that are supported by this resolver.