Class LookupExpressionBuilder

java.lang.Object
li.selman.jpbe.dsl.expression.LookupExpressionBuilder
All Implemented Interfaces:
ExpressionBuilder

public class LookupExpressionBuilder extends Object implements ExpressionBuilder
Different LookupExpressionBuilder can be implemented. E.g. using a database to store the lookup values.
  • Constructor Details

    • LookupExpressionBuilder

      public LookupExpressionBuilder(List<List<String>> columns)
  • Method Details

    • computeExpressions

      public List<Expression> computeExpressions(String input, String substr)
      Specified by:
      computeExpressions in interface ExpressionBuilder
      Parameters:
      input - of the initially provided input example
      substr - of the initially provided output example
      Returns:
      all expressions of the builder, so that each expression f produces: f(input) = substr