CommonToken Class Reference
#include <CommonToken.hpp>
Inheritance diagram for CommonToken:


Public Member Functions | |
CommonToken () | |
CommonToken (int t, const std::string &txt) | |
CommonToken (const std::string &s) | |
std::string | getText () const |
return contents of token | |
void | setText (const std::string &s) |
set contents of token | |
int | getLine () const |
get the line the token is at (starting at 1) | |
int | getColumn () const |
gt the column the token is at (starting at 1) | |
void | setLine (int l) |
set line for token | |
void | setColumn (int c) |
set column for token | |
bool | isInvalid () const |
std::string | toString () const |
Static Public Member Functions | |
RefToken | factory () |
Protected Attributes | |
int | line |
int | col |
std::string | text |
Private Member Functions | |
CommonToken (const CommonToken &) | |
const CommonToken & | operator= (const CommonToken &) |
Constructor & Destructor Documentation
|
Definition at line 15 of file CommonToken.cpp. References text(). |
|
Definition at line 18 of file CommonToken.cpp. References text(). |
|
Definition at line 22 of file CommonToken.cpp. References text(). |
|
|
Member Function Documentation
|
Reimplemented in CommonHiddenStreamToken. Definition at line 31 of file CommonToken.cpp. References RefToken. |
|
gt the column the token is at (starting at 1)
Reimplemented from Token. Definition at line 49 of file CommonToken.hpp. |
|
get the line the token is at (starting at 1)
Reimplemented from Token. Definition at line 41 of file CommonToken.hpp. |
|
return contents of token
Reimplemented from Token. Definition at line 26 of file CommonToken.hpp. |
|
Definition at line 65 of file CommonToken.hpp. |
|
|
|
set column for token
Reimplemented from Token. Definition at line 60 of file CommonToken.hpp. |
|
set line for token
Reimplemented from Token. Definition at line 55 of file CommonToken.hpp. |
|
set contents of token
Reimplemented from Token. Definition at line 32 of file CommonToken.hpp. References text(). |
|
Reimplemented from Token. Definition at line 26 of file CommonToken.cpp. |
Member Data Documentation
|
Definition at line 76 of file CommonToken.hpp. |
|
Definition at line 75 of file CommonToken.hpp. |
|
Definition at line 77 of file CommonToken.hpp. |
The documentation for this class was generated from the following files:
- lib/antlr/antlr/CommonToken.hpp
- lib/antlr/src/CommonToken.cpp