Class SizeExpressionStateObject

  • All Implemented Interfaces:
    StateObject

    public class SizeExpressionStateObject
    extends AbstractSingleEncapsulatedExpressionStateObject
    The SIZE function returns an integer value, the number of elements of the collection. If the collection is empty, the SIZE function evaluates to zero.
    BNF: expression ::= SIZE(collection_valued_path_expression)

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

      • SizeExpressionStateObject

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

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

        public SizeExpressionStateObject​(StateObject parent,
                                         java.lang.String path)
        Creates a new SizeExpressionStateObject.
        Parameters:
        parent - The parent of this state object, which cannot be null
        path - The collection-valued path expression
        Throws:
        java.lang.NullPointerException - The given parent cannot be null