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
public class FailedPredicateException extends RecognitionException
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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FailedPredicateException(Parser recognizer)
FailedPredicateException(Parser recognizer, String predicate)
FailedPredicateException(Parser recognizer, String predicate, String message)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getPredicate()
int
getPredIndex()
int
getRuleIndex()
-
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
-
-