#include <LexerSharedInputState.hpp>
Public Member Functions | |
LexerInputState (InputBuffer *inbuf) | |
LexerInputState (InputBuffer &inbuf) | |
LexerInputState (ANTLR_USE_NAMESPACE(std) istream &in) | |
virtual void | initialize (ANTLR_USE_NAMESPACE(std) istream &in, const char *file="") |
virtual void | reset (void) |
void | setPosition (int line_, int column_) |
virtual | ~LexerInputState () |
ANTLR_USE_NAMESPACE (std) string filename | |
InputBuffer & | getInput () |
Data Fields | |
int | column |
int | line |
int | tokenStartColumn |
int | tokenStartLine |
int | guessing |
Private Member Functions | |
LexerInputState (const LexerInputState &) | |
LexerInputState & | operator= (const LexerInputState &) |
Private Attributes | |
InputBuffer * | input |
Input buffer we use. | |
bool | inputResponsible |
Who is responsible for cleaning up the InputBuffer? |
Definition at line 26 of file LexerSharedInputState.hpp.
LexerInputState::LexerInputState | ( | InputBuffer * | inbuf | ) | [inline] |
Construct a new LexerInputState
inbuf | the InputBuffer to read from. The object is deleted together with the LexerInputState object. |
Definition at line 32 of file LexerSharedInputState.hpp.
LexerInputState::LexerInputState | ( | InputBuffer & | inbuf | ) | [inline] |
Construct a new LexerInputState
inbuf | the InputBuffer to read from. |
Definition at line 47 of file LexerSharedInputState.hpp.
LexerInputState::LexerInputState | ( | ANTLR_USE_NAMESPACE(std) istream & | in | ) | [inline] |
Construct a new LexerInputState
in | an istream to read from. |
Definition at line 63 of file LexerSharedInputState.hpp.
virtual LexerInputState::~LexerInputState | ( | ) | [inline, virtual] |
Definition at line 119 of file LexerSharedInputState.hpp.
LexerInputState::LexerInputState | ( | const LexerInputState & | ) | [private] |
virtual void LexerInputState::initialize | ( | ANTLR_USE_NAMESPACE(std) istream & | in, | |
const char * | file = "" | |||
) | [inline, virtual] |
Reset the LexerInputState with a specified stream and filename. This method is a hack, dunno what I was thinking when I added it. This should actually be done in a subclass.
Definition at line 80 of file LexerSharedInputState.hpp.
virtual void LexerInputState::reset | ( | void | ) | [inline, virtual] |
Reset the LexerInputState to initial state. The underlying InputBuffer is also reset.
Definition at line 99 of file LexerSharedInputState.hpp.
void LexerInputState::setPosition | ( | int | line_, | |
int | column_ | |||
) | [inline] |
Set the file position of the SharedLexerInputState.
line_ | line number to be set | |
column_ | column number to be set |
Definition at line 113 of file LexerSharedInputState.hpp.
LexerInputState::ANTLR_USE_NAMESPACE | ( | std | ) |
What file (if known) caused the problem?
InputBuffer & LexerInputState::getInput | ( | ) | [inline] |
Definition at line 144 of file LexerSharedInputState.hpp.
LexerInputState& LexerInputState::operator= | ( | const LexerInputState & | ) | [private] |
Definition at line 125 of file LexerSharedInputState.hpp.
Definition at line 126 of file LexerSharedInputState.hpp.
Definition at line 127 of file LexerSharedInputState.hpp.
Definition at line 128 of file LexerSharedInputState.hpp.
Definition at line 129 of file LexerSharedInputState.hpp.
InputBuffer* LexerInputState::input [private] |
bool LexerInputState::inputResponsible [private] |
Who is responsible for cleaning up the InputBuffer?
Definition at line 137 of file LexerSharedInputState.hpp.