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, @Nullable String predicate) FailedPredicateException(Parser recognizer, @Nullable String predicate, @Nullable String message) -
Method Summary
Methods inherited from class org.antlr.v4.runtime.RecognitionException
getContext, getExpectedTokens, getInputStream, getOffendingState, getOffendingToken, getOffendingToken, getRecognizer, setOffendingState, setOffendingTokenMethods 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
-
getPredIndex
public int getPredIndex() -
getRuleIndex
public int getRuleIndex() -
getPredicate
-