Class IndexExpressionStateObject

  • All Implemented Interfaces:
    StateObject

    public class IndexExpressionStateObject
    extends EncapsulatedIdentificationVariableExpressionStateObject
    The INDEX function returns an integer value corresponding to the position of its argument in an ordered list. The INDEX function can only be applied to identification variables denoting types for which an order column has been specified.
    BNF: expression ::= INDEX(identification_variable)

    Version:
    2.4
    See Also:
    IndexExpression
    Author:
    Pascal Filion
    Since:
    2.4
    • Constructor Detail

      • IndexExpressionStateObject

        public IndexExpressionStateObject​(StateObject parent)
        Creates a new IndexExpressionStateObject.
        Parameters:
        parent - The parent of this state object, which cannot be null
        Throws:
        java.lang.NullPointerException - The given parent cannot be null
      • IndexExpressionStateObject

        public IndexExpressionStateObject​(StateObject parent,
                                          java.lang.String identificationVariable)
        Creates a new IndexExpressionStateObject.
        Parameters:
        parent - The parent of this state object, which cannot be null
        identificationVariable - The name of the identification variable
        Throws:
        java.lang.NullPointerException - The given parent cannot be null