Package org.antlr.runtime.debug
Class RemoteDebugEventSocketListener
java.lang.Object
org.antlr.runtime.debug.RemoteDebugEventSocketListener
- All Implemented Interfaces:
Runnable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) Socket
(package private) String
(package private) BufferedReader
(package private) DebugEventListener
(package private) String
(package private) static final int
(package private) PrintWriter
(package private) int
(package private) int
Track the last token index we saw during a consume.(package private) boolean
Version of ANTLR (dictates events) -
Constructor Summary
ConstructorsConstructorDescriptionRemoteDebugEventSocketListener
(DebugEventListener listener, String machine, int port) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
ack()
protected void
protected RemoteDebugEventSocketListener.ProxyTree
deserializeNode
(String[] elements, int offset) deserializeToken
(String[] elements, int offset) protected void
protected void
String[]
getEventElements
(String event) protected void
protected boolean
void
run()
void
start()
Create a thread to listen to the remote running recognizerboolean
protected String
unEscapeNewlines
(String txt)
-
Field Details
-
MAX_EVENT_ELEMENTS
static final int MAX_EVENT_ELEMENTS- See Also:
-
listener
DebugEventListener listener -
machine
String machine -
port
int port -
channel
Socket channel -
out
PrintWriter out -
in
-
event
String event -
version
Version of ANTLR (dictates events) -
grammarFileName
-
previousTokenIndex
int previousTokenIndexTrack 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
-
RemoteDebugEventSocketListener
public RemoteDebugEventSocketListener(DebugEventListener listener, String machine, int port) throws IOException - Throws:
IOException
-
-
Method Details
-
eventHandler
protected void eventHandler() -
openConnection
protected boolean openConnection() -
closeConnection
protected void closeConnection() -
handshake
- Throws:
IOException
-
ack
protected void ack() -
dispatch
-
deserializeNode
-
deserializeToken
-
start
public void start()Create a thread to listen to the remote running recognizer -
run
public void run() -
getEventElements
-
unEscapeNewlines
-
tokenIndexesAreInvalid
public boolean tokenIndexesAreInvalid()
-