|
ANTLR Support Libraries 2.7.1+
|
#include <Token.hpp>


Public Member Functions | |
| Token () | |
| Token (int t) | |
| Token (int t, const std::string &txt) | |
| virtual | ~Token () |
| virtual int | getColumn () const |
| virtual int | getLine () const |
| virtual std::string | getText () const |
| virtual const std::string & | getFilename () const |
| virtual int | getType () const |
| virtual void | setColumn (int c) |
| virtual void | setLine (int l) |
| virtual void | setText (const std::string &t) |
| virtual void | setType (int t) |
| virtual void | setFilename (const std::string &file) |
| virtual std::string | toString () const |
Static Public Attributes | |
| static const int | MIN_USER_TYPE = 4 |
| static const int | NULL_TREE_LOOKAHEAD = 3 |
| static const int | INVALID_TYPE = 0 |
| static const int | EOF_TYPE = 1 |
| static const int | SKIP = -1 |
Private Member Functions | |
| Token (RefToken other) | |
| Token & | operator= (const Token &other) |
| Token & | operator= (RefToken other) |
| Token (const Token &) | |
Private Attributes | |
| TokenRef * | ref |
| int | type |
| the type of the token | |
Friends | |
| struct | TokenRef |
A token is minimally a token type. Subclasses can add the text matched for the token and line info.
| Token::Token | ( | ) | [inline] |
| Token::Token | ( | int | t | ) | [inline] |
| Token::Token | ( | int | t, |
| const std::string & | txt | ||
| ) | [inline] |
| virtual Token::~Token | ( | ) | [inline, virtual] |
| Token::Token | ( | RefToken | other | ) | [private] |
| Token::Token | ( | const Token & | ) | [private] |
| int Token::getColumn | ( | ) | const [virtual] |
Reimplemented in CommonToken.
| const std::string & Token::getFilename | ( | ) | const [virtual] |
| int Token::getLine | ( | ) | const [virtual] |
Reimplemented in CommonToken.
| std::string Token::getText | ( | ) | const [virtual] |
Reimplemented in CommonToken.
| int Token::getType | ( | ) | const [virtual] |
| void Token::setColumn | ( | int | c | ) | [virtual] |
Reimplemented in CommonToken.
| void Token::setFilename | ( | const std::string & | file | ) | [virtual] |
| void Token::setLine | ( | int | l | ) | [virtual] |
Reimplemented in CommonToken.
| void Token::setText | ( | const std::string & | t | ) | [virtual] |
Reimplemented in CommonToken.
| void Token::setType | ( | int | t | ) | [virtual] |
| std::string Token::toString | ( | ) | const [virtual] |
Reimplemented in CommonToken.
friend struct TokenRef [friend] |
const int Token::EOF_TYPE = 1 [static] |
const int Token::INVALID_TYPE = 0 [static] |
const int Token::MIN_USER_TYPE = 4 [static] |
const int Token::NULL_TREE_LOOKAHEAD = 3 [static] |
TokenRef* Token::ref [private] |
const int Token::SKIP = -1 [static] |
int Token::type [private] |
the type of the token
1.7.6.1