Class AbstractRegularExpression

    • Constructor Detail

      • AbstractRegularExpression

        public AbstractRegularExpression()
    • Method Detail

      • interpret

        public abstract boolean interpret​(Context c)
                                   throws REParserException
        Parses this expression, possibly using the given Context to fetch the String to interpret if this Expression is a leaf expression.
        Returns:
        TRUE if parsing was successful
        Throws:
        REParserException - if an error occur during parsing
      • action

        public void action​(ParserEvent e)
                    throws REParserException
        Called in the course of the interpret operation at the end of a SUCCESSFUL interpret operation. Should be overriden by daughter classes to process proper action, e.g. set Element's attributes... Current implementation does nothing, but sending a debugging string.
        Throws:
        REParserException