Java.target.apidocs.org.antlr.v4.runtime.FailedPredicateException.html Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of antlr4-perf-testsuite Show documentation
Show all versions of antlr4-perf-testsuite Show documentation
The ANTLR 4 grammar compiler.
FailedPredicateException (ANTLR 4 Runtime (Optimized) 4.13.1.3 API)
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 and 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 and Description
String
getPredicate()
int
getPredIndex()
int
getRuleIndex()
-
Methods inherited from class org.antlr.v4.runtime.RecognitionException
getContext, getExpectedTokens, getInputStream, getOffendingState, getOffendingToken, 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 Detail
-
FailedPredicateException
public FailedPredicateException(@NotNull
Parser recognizer)
-
FailedPredicateException
public FailedPredicateException(@NotNull
Parser recognizer,
@Nullable
String predicate)
-
Method Detail
-
getRuleIndex
public int getRuleIndex()
-
getPredIndex
public int getPredIndex()
-
getPredicate
@Nullable
public String getPredicate()
Copyright © 1992–2023 Daniel Sun. All rights reserved.