Class AlternateExpression

    • Method Detail

      • interpret

        public boolean interpret​(Context c)
                          throws REParserException
        Calls "action" with value=Integer(index of first expression parsed with success, starting from 0).
        Specified by:
        interpret in class AbstractRegularExpression
        Returns:
        TRUE as soon as one of the expressions contained in this AlternateExpression has been found ; FALSE if no match.

        Throws:
        REParserException - if an error occur during parsing
      • getExpressionList

        public java.util.ArrayList getExpressionList()
        Return a list containing every expression in this AlternateExpression
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object