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 classstatic 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) intTrack the last token index we saw during a consume.(package private) booleanVersion of ANTLR (dictates events) -
Constructor Summary
ConstructorsConstructorDescriptionRemoteDebugEventSocketListener(DebugEventListener listener, String machine, int port) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidack()protected voidprotected RemoteDebugEventSocketListener.ProxyTreedeserializeNode(String[] elements, int offset) deserializeToken(String[] elements, int offset) protected voidprotected voidString[]getEventElements(String event) protected voidprotected booleanvoidrun()voidstart()Create a thread to listen to the remote running recognizerbooleanprotected StringunEscapeNewlines(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()
-