Interface IPatternSequence

    • Method Detail

      • getHeadTest

        IExpr getHeadTest()
        Get the additional pattern sequences condition expression
        Specified by:
        getHeadTest in interface IPatternObject
        Returns:
        may return null;
      • matchPatternSequence

        boolean matchPatternSequence​(IAST sequence,
                                     IPatternMap patternMap,
                                     ISymbol optionsPatternHead)
        Check if this pattern sequence object matches the given sequence.
        Parameters:
        sequence - the sequence which should be matched.
        patternMap - a map from a pattern to a possibly found value during pattern-matching.
        optionsPatternHead - TODO
        Returns:
      • isConditionMatchedSequence

        boolean isConditionMatchedSequence​(IAST sequence,
                                           IPatternMap patternMap)
        Return true, if all of the elements in the sequence fulfill the pattern sequences additional condition
        Parameters:
        sequence -
        Returns:
      • isDefault

        boolean isDefault()
        Return true, if the expression is a pattern sequence with an associated default value,
        Returns:
      • isNullSequence

        boolean isNullSequence()