Package org.antlr.runtime.debug
Class RemoteDebugEventSocketListener.ProxyToken
java.lang.Object
org.antlr.runtime.debug.RemoteDebugEventSocketListener.ProxyToken
- All Implemented Interfaces:
Token
- Enclosing class:
RemoteDebugEventSocketListener
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) int
(package private) int
(package private) int
(package private) int
(package private) String
(package private) int
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
-
Constructor Summary
ConstructorsConstructorDescriptionProxyToken
(int index) ProxyToken
(int index, int type, int channel, int line, int charPos, String text) -
Method Summary
Modifier and TypeMethodDescriptionint
int
The index of the first character relative to the beginning of the line 0..n-1From 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...int
getLine()
The line number on which this token was matched; line=1..ngetText()
Get the text of the tokenint
An index from 0..n-1 of the token object in the input stream.int
getType()
void
setChannel
(int channel) void
setCharPositionInLine
(int pos) void
setInputStream
(CharStream input) void
setLine
(int line) void
void
setTokenIndex
(int index) void
setType
(int ttype) toString()
-
Field Details
-
index
int index -
type
int type -
channel
int channel -
line
int line -
charPos
int charPos -
text
String text
-
-
Constructor Details
-
ProxyToken
public ProxyToken(int index) -
ProxyToken
-
-
Method Details
-
getText
Description copied from interface:Token
Get the text of the token -
setText
-
getType
public int getType() -
setType
public void setType(int ttype) -
getLine
public int getLine()Description copied from interface:Token
The line number on which this token was matched; line=1..n -
setLine
public void setLine(int line) -
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 interfaceToken
-
setCharPositionInLine
public void setCharPositionInLine(int pos) - Specified by:
setCharPositionInLine
in interfaceToken
-
getChannel
public int getChannel()- Specified by:
getChannel
in interfaceToken
-
setChannel
public void setChannel(int channel) - Specified by:
setChannel
in interfaceToken
-
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 interfaceToken
-
setTokenIndex
public void setTokenIndex(int index) - Specified by:
setTokenIndex
in interfaceToken
-
getInputStream
Description copied from interface:Token
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... on the input.- Specified by:
getInputStream
in interfaceToken
-
setInputStream
- Specified by:
setInputStream
in interfaceToken
-
toString
-