org.antlr.runtime
Class FailedPredicateException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.antlr.runtime.RecognitionException
              extended by org.antlr.runtime.FailedPredicateException
All Implemented Interfaces:
java.io.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 hoist a predicate into a prediction decision.

See Also:
Serialized Form

Field Summary
 java.lang.String predicateText
           
 java.lang.String ruleName
           
 
Fields inherited from class org.antlr.runtime.RecognitionException
approximateLineInfo, c, charPositionInLine, index, input, line, node, token
 
Constructor Summary
FailedPredicateException()
          Used for remote debugger deserialization
FailedPredicateException(IntStream input, java.lang.String ruleName, java.lang.String predicateText)
           
 
Method Summary
 java.lang.String toString()
           
 
Methods inherited from class org.antlr.runtime.RecognitionException
extractInformationFromTreeNodeStream, getUnexpectedType
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ruleName

public java.lang.String ruleName

predicateText

public java.lang.String predicateText
Constructor Detail

FailedPredicateException

public FailedPredicateException()
Used for remote debugger deserialization


FailedPredicateException

public FailedPredicateException(IntStream input,
                                java.lang.String ruleName,
                                java.lang.String predicateText)
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Throwable


Copyright © 2011. All Rights Reserved.