Package antlr.debug

Class ParserMatchEvent

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int BITSET  
      static int CHAR  
      static int CHAR_BITSET  
      static int CHAR_RANGE  
      static int STRING  
      static int TOKEN  
      • Fields inherited from class java.util.EventObject

        source
    • Constructor Summary

      Constructors 
      Constructor Description
      ParserMatchEvent​(java.lang.Object source)  
      ParserMatchEvent​(java.lang.Object source, int type, int value, java.lang.Object target, java.lang.String text, int guessing, boolean inverse, boolean matched)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object getTarget()  
      java.lang.String getText()  
      int getValue()  
      boolean isInverse()  
      boolean isMatched()  
      (package private) void setInverse​(boolean inverse)  
      (package private) void setMatched​(boolean matched)  
      (package private) void setTarget​(java.lang.Object target)  
      (package private) void setText​(java.lang.String text)  
      (package private) void setValue​(int value)  
      (package private) void setValues​(int type, int value, java.lang.Object target, java.lang.String text, int guessing, boolean inverse, boolean matched)
      This should NOT be called from anyone other than ParserEventSupport!
      java.lang.String toString()  
      • Methods inherited from class java.util.EventObject

        getSource
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • TOKEN

        public static int TOKEN
      • BITSET

        public static int BITSET
      • CHAR

        public static int CHAR
      • CHAR_BITSET

        public static int CHAR_BITSET
      • STRING

        public static int STRING
      • CHAR_RANGE

        public static int CHAR_RANGE
    • Constructor Detail

      • ParserMatchEvent

        public ParserMatchEvent​(java.lang.Object source)
      • ParserMatchEvent

        public ParserMatchEvent​(java.lang.Object source,
                                int type,
                                int value,
                                java.lang.Object target,
                                java.lang.String text,
                                int guessing,
                                boolean inverse,
                                boolean matched)
    • Method Detail

      • getTarget

        public java.lang.Object getTarget()
      • getText

        public java.lang.String getText()
      • getValue

        public int getValue()
      • isInverse

        public boolean isInverse()
      • isMatched

        public boolean isMatched()
      • setInverse

        void setInverse​(boolean inverse)
      • setMatched

        void setMatched​(boolean matched)
      • setTarget

        void setTarget​(java.lang.Object target)
      • setText

        void setText​(java.lang.String text)
      • setValue

        void setValue​(int value)
      • setValues

        void setValues​(int type,
                       int value,
                       java.lang.Object target,
                       java.lang.String text,
                       int guessing,
                       boolean inverse,
                       boolean matched)
        This should NOT be called from anyone other than ParserEventSupport!
      • toString

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