Class SubscriptExpression

java.lang.Object
com.inductiveautomation.ignition.common.expressions.AbstractExpression
com.inductiveautomation.ignition.common.expressions.SubscriptExpression
All Implemented Interfaces:
Expression

public class SubscriptExpression extends AbstractExpression
This expression takes a reference to an array, dataset, collection, or map and subscripts inside it to pull out a value, like: {dataset}[0,5]. Arrays, lists, JSON/document arrays, and datasets also support negative indices to count from the end, e.g. {list}[-1] for the last element; maps and property sets do not.
  • Constructor Details

  • Method Details

    • execute

      public @NonNull QualifiedValue execute() throws ExpressionException
      Description copied from interface: Expression
      Compute and return the value of this expression.
      Returns:
      the result of the expression evaluation as a QualifiedValue
      Throws:
      ExpressionException - if an error occurs during execution
    • getOpName

      public String getOpName()
      Description copied from interface: Expression
      Return a human-readable name for the operation that this expression performs.
      Returns:
      the operation name