Package org.antlr.v4.runtime
Class FailedPredicateException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.antlr.v4.runtime.RecognitionException
org.antlr.v4.runtime.FailedPredicateException
- All Implemented Interfaces:
Serializable
A semantic predicate failed during validation. Validation of predicates
occurs when normally parsing the alternative just like matching a token.
Disambiguating predicate evaluation occurs when we test a predicate during
prediction.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionFailedPredicateException
(Parser recognizer) FailedPredicateException
(Parser recognizer, String predicate) FailedPredicateException
(Parser recognizer, String predicate, String message) -
Method Summary
Methods inherited from class org.antlr.v4.runtime.RecognitionException
getCtx, getExpectedTokens, getInputStream, getOffendingState, getOffendingToken, getRecognizer, setOffendingState, setOffendingToken
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
FailedPredicateException
-
FailedPredicateException
-
FailedPredicateException
-
-
Method Details
-
getRuleIndex
public int getRuleIndex() -
getPredIndex
public int getPredIndex() -
getPredicate
-