Package org.antlr.runtime

Examples of org.antlr.runtime.FailedPredicateException


                + (input.LT(3) != null ? " " + getTokenErrorDisplay(input.LT(3)) : "");
      } else if (e instanceof MismatchedTokenException) {
        MismatchedTokenException mte = (MismatchedTokenException) e;
        msg = super.getErrorMessage(e, xlateNames) + (input.LT(-1) == null ? "":" near '" + input.LT(-1).getText()) + "'";
      } else if (e instanceof FailedPredicateException) {
        FailedPredicateException fpe = (FailedPredicateException) e;
        msg = "Failed to recognize predicate '" + fpe.token.getText() + "'. Failed rule: '" + fpe.ruleName + "'";
      } else {
        msg = super.getErrorMessage(e, xlateNames);
      }
View Full Code Here


                    e.line, e.charPositionInLine, getBetterToken(e.token),
                    mse.expecting, formatParserLocation());
            codeAndMessage.add(message);
            codeAndMessage.add("ERR 108");
        } else if (e instanceof FailedPredicateException) {
            FailedPredicateException fpe = (FailedPredicateException) e;
            message = String.format(
                    DroolsParserExceptionFactory.FAILED_PREDICATE_MESSAGE,
                    e.line, e.charPositionInLine, fpe.ruleName,
                    fpe.predicateText, formatParserLocation());
            codeAndMessage.add(message);
View Full Code Here

TOP

Related Classes of org.antlr.runtime.FailedPredicateException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.