Package org.antlr.runtime.debug
Class RemoteDebugEventSocketListener
- java.lang.Object
-
- org.antlr.runtime.debug.RemoteDebugEventSocketListener
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRemoteDebugEventSocketListener.ProxyTokenstatic classRemoteDebugEventSocketListener.ProxyTree
-
Field Summary
Fields Modifier and Type Field Description StringgrammarFileNameStringversionVersion of ANTLR (dictates events)
-
Constructor Summary
Constructors Constructor Description RemoteDebugEventSocketListener(DebugEventListener listener, String machine, int port)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidack()protected voidcloseConnection()protected RemoteDebugEventSocketListener.ProxyTreedeserializeNode(String[] elements, int offset)protected RemoteDebugEventSocketListener.ProxyTokendeserializeToken(String[] elements, int offset)protected voiddispatch(String line)protected voideventHandler()String[]getEventElements(String event)protected voidhandshake()protected booleanopenConnection()voidrun()voidstart()Create a thread to listen to the remote running recognizerbooleantokenIndexesAreInvalid()protected StringunEscapeNewlines(String txt)
-
-
-
Constructor Detail
-
RemoteDebugEventSocketListener
public RemoteDebugEventSocketListener(DebugEventListener listener, String machine, int port) throws IOException
- Throws:
IOException
-
-
Method Detail
-
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
-
tokenIndexesAreInvalid
public boolean tokenIndexesAreInvalid()
-
-