Top Description Fields Constructors Methods
org.antlr.runtime

public Class FailedPredicateException

extends RecognitionException
Class Inheritance

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 hoist a predicate into a prediction decision.

Field Summary

Modifier and TypeField and Description
public String
public String
Inherited from org.antlr.runtime.RecognitionException:
approximateLineInfoccharPositionInLineindexinputlinenodetoken

Constructor Summary

AccessConstructor and Description
public
FailedPredicateException()

Used for remote debugger deserialization

public
FailedPredicateException(IntStream input, String ruleName, String predicateText)

Method Summary

Modifier and TypeMethod and Description
public String
toString()

Overrides java.lang.Throwable.toString.

Returns a short description of this throwable.
Inherited from org.antlr.runtime.RecognitionException:
extractInformationFromTreeNodeStreamgetUnexpectedType

Field Detail

predicateTextback to summary
public String predicateText
ruleNameback to summary
public String ruleName

Constructor Detail

FailedPredicateExceptionback to summary
public FailedPredicateException()

Used for remote debugger deserialization

FailedPredicateExceptionback to summary
public FailedPredicateException(IntStream input, String ruleName, String predicateText)

Method Detail

toStringback to summary
public String toString()

Overrides java.lang.Throwable.toString.

Doc from java.lang.Throwable.toString.

Returns a short description of this throwable. The result is the concatenation of:

  • the name of the class of this object
  • ": " (a colon and a space)
  • the result of invoking this object's getLocalizedMessage method
If getLocalizedMessage returns null, then just the class name is returned.
Returns:String

a string representation of this throwable.

Annotations
@Override