Class RemoteDebugEventSocketListener

java.lang.Object
org.antlr.runtime.debug.RemoteDebugEventSocketListener
All Implemented Interfaces:
Runnable

public class RemoteDebugEventSocketListener extends Object implements Runnable
  • Field Details

    • MAX_EVENT_ELEMENTS

      static final int MAX_EVENT_ELEMENTS
      See Also:
    • listener

    • machine

      String machine
    • port

      int port
    • channel

      Socket channel
    • out

    • in

    • event

      String event
    • version

      public String version
      Version of ANTLR (dictates events)
    • grammarFileName

      public String grammarFileName
    • previousTokenIndex

      int previousTokenIndex
      Track the last token index we saw during a consume. If same, then set a flag that we have a problem.
    • tokenIndexesInvalid

      boolean tokenIndexesInvalid
  • Constructor Details

  • Method Details

    • eventHandler

      protected void eventHandler()
    • openConnection

      protected boolean openConnection()
    • closeConnection

      protected void closeConnection()
    • handshake

      protected void handshake() throws IOException
      Throws:
      IOException
    • ack

      protected void ack()
    • dispatch

      protected void dispatch(String line)
    • deserializeNode

      protected RemoteDebugEventSocketListener.ProxyTree deserializeNode(String[] elements, int offset)
    • deserializeToken

      protected RemoteDebugEventSocketListener.ProxyToken deserializeToken(String[] elements, int offset)
    • start

      public void start()
      Create a thread to listen to the remote running recognizer
    • run

      public void run()
      Specified by:
      run in interface Runnable
    • getEventElements

      public String[] getEventElements(String event)
    • unEscapeNewlines

      protected String unEscapeNewlines(String txt)
    • tokenIndexesAreInvalid

      public boolean tokenIndexesAreInvalid()