Class ErrorRule

    • Method Detail

      • getError

        public Expression getError()
        Gets the error expression to return when reaching this rule.
        Returns:
        the error expression.
      • accept

        public <T> T accept​(RuleValueVisitor<T> visitor)
        Description copied from class: Rule
        Invoke the RuleValueVisitor functions for this Rule.
        Specified by:
        accept in class Rule
        Type Parameters:
        T - the visitor return type.
        Parameters:
        visitor - the visitor to be invoked.
        Returns:
        the return value of the visitor.
      • toString

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