Class AggregationExpression

java.lang.Object
nz.org.riskscape.wizard.ask.AggregationExpression

public class AggregationExpression extends Object
  • Field Details

    • attribute

      public nz.org.riskscape.rl.ast.PropertyAccess attribute
    • function

      public nz.org.riskscape.engine.rl.FunctionCallPrototype function
    • resultName

      public String resultName
  • Constructor Details

    • AggregationExpression

      public AggregationExpression()
  • Method Details

    • toSource

      public String toSource()
      Returns:
      the aggregation expression in String form. NB we omit the braces here because * 1) it's easier to read when written in config, e.g. foo.bar = min(loss) as minlosses is simpler than {min(loss) vs minlosses} and * 2) as long as the question was for StructDeclaration, it'll bind just fine thanks to some special case logic for binding StructDeclaration expressions.