Public Member Functions | |
def | __init__ |
def | getChannel |
def | getCharPositionInLine |
def | getInputStream |
def | getLine |
def | getText |
def | getTokenIndex |
def | getType |
def | setChannel |
def | setCharPositionInLine |
def | setInputStream |
def | setLine |
def | setText |
def | setTokenIndex |
def | setType |
def | toString |
Public Attributes | |
channel | |
charPositionInLine | |
index | |
line | |
text | |
type | |
Static Private Attributes | |
__repr__ = toString | |
__str__ = toString |
@brief Alternative token implementation. A Token object like we'd use in ANTLR 2.x; has an actual string created and associated with this object. These objects are needed for imaginary tree nodes that have payload objects. We need to create a Token object that has a string; the tree node will point at this token. CommonToken has indexes into a char stream and hence cannot be used to introduce new strings.
def rve_interface_gen.antlr3.tokens.ClassicToken.__init__ | ( | self, | |
type = None , |
|||
text = None , |
|||
channel = DEFAULT_CHANNEL , |
|||
oldToken = None |
|||
) |
@brief Get the channel of the token Using setter/getter methods is deprecated. Use o.channel instead.
Reimplemented from rve_interface_gen.antlr3.tokens.Token.
@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.
Reimplemented from rve_interface_gen.antlr3.tokens.Token.
@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.
Reimplemented from rve_interface_gen.antlr3.tokens.Token.
@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.
Reimplemented from rve_interface_gen.antlr3.tokens.Token.
@brief Get the text of the token. Using setter/getter methods is deprecated. Use o.text instead.
Reimplemented from rve_interface_gen.antlr3.tokens.Token.
@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.
Reimplemented from rve_interface_gen.antlr3.tokens.Token.
@brief Get the type of the token. Using setter/getter methods is deprecated. Use o.type instead.
Reimplemented from rve_interface_gen.antlr3.tokens.Token.
def rve_interface_gen.antlr3.tokens.ClassicToken.setChannel | ( | self, | |
channel | |||
) |
@brief Set the channel of the token Using setter/getter methods is deprecated. Use o.channel instead.
Reimplemented from rve_interface_gen.antlr3.tokens.Token.
def rve_interface_gen.antlr3.tokens.ClassicToken.setCharPositionInLine | ( | self, | |
pos | |||
) |
@brief Set the column of the tokens first character, Using setter/getter methods is deprecated. Use o.charPositionInLine instead.
Reimplemented from rve_interface_gen.antlr3.tokens.Token.
def rve_interface_gen.antlr3.tokens.ClassicToken.setInputStream | ( | self, | |
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.
Reimplemented from rve_interface_gen.antlr3.tokens.Token.
def rve_interface_gen.antlr3.tokens.ClassicToken.setLine | ( | self, | |
line | |||
) |
@brief Set the line number on which this token was matched Using setter/getter methods is deprecated. Use o.line instead.
Reimplemented from rve_interface_gen.antlr3.tokens.Token.
def rve_interface_gen.antlr3.tokens.ClassicToken.setText | ( | self, | |
text | |||
) |
@brief Set the text of the token. Using setter/getter methods is deprecated. Use o.text instead.
Reimplemented from rve_interface_gen.antlr3.tokens.Token.
def rve_interface_gen.antlr3.tokens.ClassicToken.setTokenIndex | ( | self, | |
index | |||
) |
@brief Set the index in the input stream. Using setter/getter methods is deprecated. Use o.index instead.
Reimplemented from rve_interface_gen.antlr3.tokens.Token.
def rve_interface_gen.antlr3.tokens.ClassicToken.setType | ( | self, | |
ttype | |||
) |
@brief Get the type of the token. Using setter/getter methods is deprecated. Use o.type instead.
Reimplemented from rve_interface_gen.antlr3.tokens.Token.
rve_interface_gen::antlr3::tokens.ClassicToken::__repr__ = toString [static, private] |
rve_interface_gen::antlr3::tokens.ClassicToken::__str__ = toString [static, private] |