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:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionFailedPredicateException
(Parser recognizer) FailedPredicateException
(Parser recognizer, String predicate) FailedPredicateException
(Parser recognizer, String predicate, String message) -
Method Summary
Modifier and TypeMethodDescriptionprivate static String
formatMessage
(String predicate, String message) int
int
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
-
Field Details
-
ruleIndex
private final int ruleIndex -
predicateIndex
private final int predicateIndex -
predicate
-
-
Constructor Details
-
FailedPredicateException
-
FailedPredicateException
-
FailedPredicateException
-
-
Method Details
-
getRuleIndex
public int getRuleIndex() -
getPredIndex
public int getPredIndex() -
getPredicate
-
formatMessage
-