org.antlr.runtime.debug
Class RemoteDebugEventSocketListener

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

public class RemoteDebugEventSocketListener
extends java.lang.Object
implements java.lang.Runnable


Nested Class Summary
static class RemoteDebugEventSocketListener.ProxyToken
           
static class RemoteDebugEventSocketListener.ProxyTree
           
 
Field Summary
 java.lang.String grammarFileName
           
 java.lang.String version
          Version of ANTLR (dictates events)
 
Constructor Summary
RemoteDebugEventSocketListener(DebugEventListener listener, java.lang.String machine, int port)
           
 
Method Summary
protected  void ack()
           
protected  void closeConnection()
           
protected  RemoteDebugEventSocketListener.ProxyTree deserializeNode(java.lang.String[] elements, int offset)
           
protected  RemoteDebugEventSocketListener.ProxyToken deserializeToken(java.lang.String[] elements, int offset)
           
protected  void dispatch(java.lang.String line)
           
protected  void eventHandler()
           
 java.lang.String[] getEventElements(java.lang.String event)
           
protected  void handshake()
           
protected  boolean openConnection()
           
 void run()
           
 void start()
          Create a thread to listen to the remote running recognizer
 boolean tokenIndexesAreInvalid()
           
protected  java.lang.String unEscapeNewlines(java.lang.String txt)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

version

public java.lang.String version
Version of ANTLR (dictates events)


grammarFileName

public java.lang.String grammarFileName
Constructor Detail

RemoteDebugEventSocketListener

public RemoteDebugEventSocketListener(DebugEventListener listener,
                                      java.lang.String machine,
                                      int port)
                               throws java.io.IOException
Throws:
java.io.IOException
Method Detail

eventHandler

protected void eventHandler()

openConnection

protected boolean openConnection()

closeConnection

protected void closeConnection()

handshake

protected void handshake()
                  throws java.io.IOException
Throws:
java.io.IOException

ack

protected void ack()

dispatch

protected void dispatch(java.lang.String line)

deserializeNode

protected RemoteDebugEventSocketListener.ProxyTree deserializeNode(java.lang.String[] elements,
                                                                   int offset)

deserializeToken

protected RemoteDebugEventSocketListener.ProxyToken deserializeToken(java.lang.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 java.lang.Runnable

getEventElements

public java.lang.String[] getEventElements(java.lang.String event)

unEscapeNewlines

protected java.lang.String unEscapeNewlines(java.lang.String txt)

tokenIndexesAreInvalid

public boolean tokenIndexesAreInvalid()


Copyright © 2013. All Rights Reserved.