ANTLR Support Libraries 2.7.1+
|
#include <CommonToken.hpp>
Public Member Functions | |
CommonToken () | |
CommonToken (int t, const std::string &txt) | |
CommonToken (const std::string &s) | |
virtual std::string | getText () const |
return contents of token More... | |
virtual void | setText (const std::string &s) |
set contents of token More... | |
virtual int | getLine () const |
virtual int | getColumn () const |
virtual void | setLine (int l) |
set line for token More... | |
virtual void | setColumn (int c) |
set column for token More... | |
virtual std::string | toString () const |
![]() | |
Token () | |
Token (int t) | |
Token (int t, const std::string &txt) | |
virtual | ~Token () |
virtual const std::string & | getFilename () const |
virtual int | getType () const |
virtual void | setType (int t) |
virtual void | setFilename (const std::string &file) |
Static Public Member Functions | |
static RefToken | factory () |
Protected Attributes | |
int | line |
int | col |
std::string | text |
Private Member Functions | |
CommonToken (const CommonToken &) | |
const CommonToken & | operator= (const CommonToken &) |
Additional Inherited Members | |
![]() | |
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 |
CommonToken::CommonToken | ( | ) |
CommonToken::CommonToken | ( | int | t, |
const std::string & | txt | ||
) |
CommonToken::CommonToken | ( | const std::string & | s | ) |
|
private |
|
static |
|
inlinevirtual |
gt the column the token is at (starting at 1)
Reimplemented from Token.
|
inlinevirtual |
get the line the token is at (starting at 1)
Reimplemented from Token.
|
inlinevirtual |
return contents of token
Reimplemented from Token.
|
private |
|
inlinevirtual |
set column for token
Reimplemented from Token.
|
inlinevirtual |
set line for token
Reimplemented from Token.
|
inlinevirtual |
set contents of token
Reimplemented from Token.
|
virtual |
Reimplemented from Token.
|
protected |
|
protected |
|
protected |