Packageorg.antlr.runtime
Classpublic class FailedPredicateException
InheritanceFailedPredicateException Inheritance RecognitionException Inheritance Error

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.



Public Properties
 PropertyDefined by
 InheritedapproximateLineInfo : Boolean
If you are parsing a tree node stream, you will encounter som imaginary nodes w/o line/col info.
RecognitionException
 Inheritedc : int
The current char when an error occurred.
RecognitionException
 InheritedcharPositionInLine : int
RecognitionException
 Inheritedindex : int
What is index of token/char were we looking at when the error occurred?
RecognitionException
 Inheritedinput : IntStream
What input stream did the error occur in?
RecognitionException
 Inheritedline : int
Track the line at which the error occurred in case this is generated from a lexer.
RecognitionException
 Inheritednode : Object
If this is a tree parser exception, node is set to the node with the problem.
RecognitionException
  predicateText : String
FailedPredicateException
  ruleName : String
FailedPredicateException
 Inheritedtoken : Token
The current Token when an error occurred.
RecognitionException
 InheritedunexpectedType : int
Return the token type or char of the unexpected input element
RecognitionException
Public Methods
 MethodDefined by
  
FailedPredicateException(input:IntStream, ruleName:String, predicateText:String)
FailedPredicateException
Protected Methods
 MethodDefined by
 Inherited
RecognitionException
Property detail
predicateTextproperty
public var predicateText:String
ruleNameproperty 
public var ruleName:String
Constructor detail
FailedPredicateException()constructor
public function FailedPredicateException(input:IntStream, ruleName:String, predicateText:String)Parameters
input:IntStream
 
ruleName:String
 
predicateText:String