Class MultiAndExpression

    • Constructor Detail

      • MultiAndExpression

        public MultiAndExpression​(OCLFeatureCall... expressions)
                           throws CSTSemanticException
        Creates a chained (multi-and) expression.
        Parameters:
        expressions - the individual expressions
        Throws:
        CSTSemanticException - if expressions or an expression within is null
    • Method Detail

      • getExpressionCount

        public int getExpressionCount()
        Returns the number of expressions represented by this expression.
        Returns:
        the number of expressions
      • getExpression

        public OCLFeatureCall getExpression​(int index)
        Returns the specified expression.
        Parameters:
        index - the 0-based index
        Returns:
        the expression
        Throws:
        java.lang.IndexOutOfBoundsException - if index<0 || index >=getExpressionCount()