Class FailedPredicateException

All Implemented Interfaces:
Serializable

@NullMarked 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:
  • Constructor Details

    • FailedPredicateException

      public FailedPredicateException(Parser recognizer)
    • FailedPredicateException

      public FailedPredicateException(Parser recognizer, @Nullable String predicate)
    • FailedPredicateException

      public FailedPredicateException(Parser recognizer, @Nullable String predicate, @Nullable String message)
  • Method Details

    • getPredIndex

      public int getPredIndex()
    • getRuleIndex

      public int getRuleIndex()
    • getPredicate

      public @Nullable String getPredicate()