Class Function

java.lang.Object
io.higson.runtime.engine.core.function.Function
Direct Known Subclasses:
Function, JavaFunction

public class Function extends Object
The class represents functions from the so-called feature repository .
Each function in the repository has its unique name which is used to recognize and load its body. Functions have different use cases and are widely used by a parametric engine. The purpose of the function is determined, among others, by the following flags:
  • versionSelector - a function can be used to select a version based on the date
  • levelCreator - a function can be used for dynamically retrieving level values
  • plugin - a function is any purpose and can be used as a plugin
Functions of the type versionSelector and levelCreator always accept one ParamContext argument. Plugin functions may take any number of arguments of any type. An implementation of a function may be written in any supported language. Additionally: a function may specify a return type compatible with engine type's system.
Since:
0.1.0
Author:
Przemek Hertel, Adam Dubiel
  • Constructor Details

    • Function

      public Function()
  • Method Details

    • getDigest

      public String getDigest()
      to override in subclasses if needed
      Returns:
      function digest or null, if function does not implement it