Package 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 Object implements Token
 
- 
- 
Field Summary
- 
Fields inherited from interface org.antlr.runtime.Token
DEFAULT_CHANNEL, DOWN, EOF, EOR_TOKEN_TYPE, HIDDEN_CHANNEL, INVALID_TOKEN, INVALID_TOKEN_TYPE, MIN_TOKEN_TYPE, SKIP_TOKEN, UP 
 - 
 
- 
Constructor Summary
Constructors Constructor Description ProxyToken(int index)ProxyToken(int index, int type, int channel, int line, int charPos, String text) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetChannel()intgetCharPositionInLine()The index of the first character relative to the beginning of the line 0..n-1CharStreamgetInputStream()From what character stream was this token created? You don't have to implement but it's nice to know where a Token comes from if you have include files etc...intgetLine()The line number on which this token was matched; line=1..nStringgetText()Get the text of the tokenintgetTokenIndex()An index from 0..n-1 of the token object in the input stream.intgetType()voidsetChannel(int channel)voidsetCharPositionInLine(int pos)voidsetInputStream(CharStream input)voidsetLine(int line)voidsetText(String text)voidsetTokenIndex(int index)voidsetType(int ttype)StringtoString() 
 - 
 
- 
- 
Constructor Detail
- 
ProxyToken
public ProxyToken(int index)
 
- 
ProxyToken
public ProxyToken(int index, int type, int channel, int line, int charPos, String text) 
 - 
 
- 
Method Detail
- 
getLine
public int getLine()
Description copied from interface:TokenThe line number on which this token was matched; line=1..n 
- 
getCharPositionInLine
public int getCharPositionInLine()
Description copied from interface:TokenThe index of the first character relative to the beginning of the line 0..n-1- Specified by:
 getCharPositionInLinein interfaceToken
 
- 
setCharPositionInLine
public void setCharPositionInLine(int pos)
- Specified by:
 setCharPositionInLinein interfaceToken
 
- 
getChannel
public int getChannel()
- Specified by:
 getChannelin interfaceToken
 
- 
setChannel
public void setChannel(int channel)
- Specified by:
 setChannelin interfaceToken
 
- 
getTokenIndex
public int getTokenIndex()
Description copied from interface:TokenAn 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:
 getTokenIndexin interfaceToken
 
- 
setTokenIndex
public void setTokenIndex(int index)
- Specified by:
 setTokenIndexin interfaceToken
 
- 
getInputStream
public CharStream getInputStream()
Description copied from interface:TokenFrom what character stream was this token created? You don't have to implement but it's nice to know where a Token comes from if you have include files etc... on the input.- Specified by:
 getInputStreamin interfaceToken
 
- 
setInputStream
public void setInputStream(CharStream input)
- Specified by:
 setInputStreamin interfaceToken
 
 - 
 
 -