org.antlr.runtime.debug
Class RemoteDebugEventSocketListener.ProxyToken
java.lang.Object
org.antlr.runtime.debug.RemoteDebugEventSocketListener.ProxyToken
- All Implemented Interfaces:
- Token
- Enclosing class:
- RemoteDebugEventSocketListener
public static class RemoteDebugEventSocketListener.ProxyToken
- extends java.lang.Object
- implements Token
Fields inherited from interface org.antlr.runtime.Token |
DEFAULT_CHANNEL, DOWN, EOF, EOF_TOKEN, EOR_TOKEN_TYPE, HIDDEN_CHANNEL, INVALID_TOKEN, INVALID_TOKEN_TYPE, MIN_TOKEN_TYPE, SKIP_TOKEN, UP |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
RemoteDebugEventSocketListener.ProxyToken
public RemoteDebugEventSocketListener.ProxyToken(int index,
int type,
int channel,
int line,
int charPos,
java.lang.String text)
getText
public java.lang.String getText()
- Description copied from interface:
Token
- Get the text of the token
- Specified by:
getText
in interface Token
setText
public void setText(java.lang.String text)
- Specified by:
setText
in interface Token
getType
public int getType()
- Specified by:
getType
in interface Token
setType
public void setType(int ttype)
- Specified by:
setType
in interface Token
getLine
public int getLine()
- Description copied from interface:
Token
- The line number on which this token was matched; line=1..n
- Specified by:
getLine
in interface Token
setLine
public void setLine(int line)
- Specified by:
setLine
in interface Token
getCharPositionInLine
public int getCharPositionInLine()
- Description copied from interface:
Token
- The index of the first character relative to the beginning of the line 0..n-1
- Specified by:
getCharPositionInLine
in interface Token
setCharPositionInLine
public void setCharPositionInLine(int pos)
- Specified by:
setCharPositionInLine
in interface Token
getChannel
public int getChannel()
- Specified by:
getChannel
in interface Token
setChannel
public void setChannel(int channel)
- Specified by:
setChannel
in interface Token
getTokenIndex
public int getTokenIndex()
- Description copied from interface:
Token
- An index from 0..n-1 of the token object in the input stream.
This must be valid in order to use the ANTLRWorks debugger.
- Specified by:
getTokenIndex
in interface Token
setTokenIndex
public void setTokenIndex(int index)
- Specified by:
setTokenIndex
in interface Token
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object