Trees | Indices | Help |
|
---|
|
object --+ | Token --+ | CommonToken
@brief Basic token implementation.
This implementation does not copy the text from the input stream upon creation, but keeps start/stop pointers into the stream to avoid unnecessary copy operations.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
|
|||
text | |||
Inherited from |
|
x.__init__(...) initializes x; see help(type(x)) for signature
|
@brief Get the text of the token. Using setter/getter methods is deprecated. Use o.text instead.
|
Override the text for this token. getText() will return this text rather than pulling from the buffer. Note that this does not mean that start/stop indexes are not valid. It means that that input was converted to a new string in the token object.
|
@brief Get the type of the token. Using setter/getter methods is deprecated. Use o.type instead.
|
@brief Get the type of the token. Using setter/getter methods is deprecated. Use o.type instead.
|
@brief Get the line number on which this token was matched Lines are numbered 1..n Using setter/getter methods is deprecated. Use o.line instead.
|
@brief Set the line number on which this token was matched Using setter/getter methods is deprecated. Use o.line instead.
|
@brief Get the column of the tokens first character, Columns are numbered 0..n-1 Using setter/getter methods is deprecated. Use o.charPositionInLine instead.
|
@brief Set the column of the tokens first character, Using setter/getter methods is deprecated. Use o.charPositionInLine instead.
|
@brief Get the channel of the token Using setter/getter methods is deprecated. Use o.channel instead.
|
@brief Set the channel of the token Using setter/getter methods is deprecated. Use o.channel instead.
|
@brief Get the index in the input stream. 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. Using setter/getter methods is deprecated. Use o.index instead.
|
@brief Set the index in the input stream. Using setter/getter methods is deprecated. Use o.index instead.
|
@brief 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.
|
@brief 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.
|
str(x)
|
|
text |
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Thu Aug 6 04:50:27 2015 | http://epydoc.sourceforge.net |