Documentation of 'org.python.antlr.RecordingErrorHandler' Java class
RecordingErrorHandler
org.python.antlr

Class RecordingErrorHandler



  • public class RecordingErrorHandler
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      java.util.List<org.antlr.runtime.RecognitionException> errs 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void error(java.lang.String message, PythonTree t) 
      expr errorExpr(PythonTree t) 
      mod errorMod(PythonTree t) 
      slice errorSlice(PythonTree t) 
      stmt errorStmt(PythonTree t) 
      boolean mismatch(org.antlr.runtime.BaseRecognizer br, org.antlr.runtime.IntStream input, int ttype, org.antlr.runtime.BitSet follow) 
      void recover(org.antlr.runtime.BaseRecognizer br, org.antlr.runtime.IntStream input, org.antlr.runtime.RecognitionException re) 
      void recover(org.antlr.runtime.Lexer lex, org.antlr.runtime.RecognitionException re) 
      java.lang.Object recoverFromMismatchedToken(org.antlr.runtime.BaseRecognizer br, org.antlr.runtime.IntStream input, int ttype, org.antlr.runtime.BitSet follow) 
      void reportError(org.antlr.runtime.BaseRecognizer br, org.antlr.runtime.RecognitionException re) 
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • errs

        public java.util.List<org.antlr.runtime.RecognitionException> errs
    • Constructor Detail

      • RecordingErrorHandler

        public RecordingErrorHandler()
    • Method Detail

      • reportError

        public void reportError(org.antlr.runtime.BaseRecognizer br,
                                org.antlr.runtime.RecognitionException re)
      • recover

        public void recover(org.antlr.runtime.Lexer lex,
                            org.antlr.runtime.RecognitionException re)
      • recover

        public void recover(org.antlr.runtime.BaseRecognizer br,
                            org.antlr.runtime.IntStream input,
                            org.antlr.runtime.RecognitionException re)
      • mismatch

        public boolean mismatch(org.antlr.runtime.BaseRecognizer br,
                                org.antlr.runtime.IntStream input,
                                int ttype,
                                org.antlr.runtime.BitSet follow)
        Returns:
        True if the caller should handle the mismatch
      • recoverFromMismatchedToken

        public java.lang.Object recoverFromMismatchedToken(org.antlr.runtime.BaseRecognizer br,
                                                           org.antlr.runtime.IntStream input,
                                                           int ttype,
                                                           org.antlr.runtime.BitSet follow)
        Returns:
        null if the caller should handle the mismatch
      • error

        public void error(java.lang.String message,
                          PythonTree t)

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.