#include <Token.hpp>
Public Member Functions | |
Token () | |
Token (int t) | |
Token (int t, const ANTLR_USE_NAMESPACE(std) string &txt) | |
virtual | ~Token () |
virtual int | getColumn () const |
virtual int | getLine () const |
virtual | ANTLR_USE_NAMESPACE (std) string getText() const |
virtual const | ANTLR_USE_NAMESPACE (std) string &getFilename() const |
virtual int | getType () const |
virtual void | setColumn (int c) |
virtual void | setLine (int l) |
virtual void | setText (const ANTLR_USE_NAMESPACE(std) string &t) |
virtual void | setType (int t) |
virtual void | setFilename (const std::string &file) |
virtual | ANTLR_USE_NAMESPACE (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 |
Definition at line 24 of file Token.hpp.
Token::Token | ( | int | t, | |
const ANTLR_USE_NAMESPACE(std) string & | txt | |||
) | [inline] |
Token::Token | ( | RefToken | other | ) | [private] |
Token::Token | ( | const Token & | ) | [private] |
virtual int Token::getColumn | ( | ) | const [virtual] |
Reimplemented in CommonToken.
virtual int Token::getLine | ( | ) | const [virtual] |
Reimplemented in CommonToken.
virtual Token::ANTLR_USE_NAMESPACE | ( | std | ) | const [virtual] |
Reimplemented in CommonToken, and CommonToken.
virtual const Token::ANTLR_USE_NAMESPACE | ( | std | ) | const [virtual] |
Reimplemented in CommonToken, and CommonToken.
virtual int Token::getType | ( | ) | const [virtual] |
virtual void Token::setColumn | ( | int | c | ) | [virtual] |
Reimplemented in CommonToken.
virtual void Token::setLine | ( | int | l | ) | [virtual] |
Reimplemented in CommonToken.
virtual void Token::setText | ( | const ANTLR_USE_NAMESPACE(std) string & | t | ) | [virtual] |
Reimplemented in CommonToken.
virtual void Token::setType | ( | int | t | ) | [virtual] |
virtual void Token::setFilename | ( | const std::string & | file | ) | [virtual] |
virtual Token::ANTLR_USE_NAMESPACE | ( | std | ) | const [virtual] |
Reimplemented in CommonToken, and CommonToken.
const int Token::MIN_USER_TYPE = 4 [static] |
const int Token::NULL_TREE_LOOKAHEAD = 3 [static] |
const int Token::INVALID_TYPE = 0 [static] |
const int Token::EOF_TYPE = 1 [static] |
const int Token::SKIP = -1 [static] |
TokenRef* Token::ref [private] |
int Token::type [private] |