#include <TokenStreamRewriteEngine.hpp>
Public Member Functions | |
virtual | ~RewriteOperation () |
virtual size_t | execute (ANTLR_USE_NAMESPACE(std) ostream &) |
virtual size_t | getIndex () const |
virtual const char * | type () const |
Protected Member Functions | |
RewriteOperation (size_t idx, const ANTLR_USE_NAMESPACE(std) string &txt) | |
ANTLR_USE_NAMESPACE (std) string text | |
Protected Attributes | |
size_t | index |
Definition at line 100 of file TokenStreamRewriteEngine.hpp.
TokenStreamRewriteEngine::RewriteOperation::RewriteOperation | ( | size_t | idx, | |
const ANTLR_USE_NAMESPACE(std) string & | txt | |||
) | [inline, protected] |
Definition at line 102 of file TokenStreamRewriteEngine.hpp.
virtual TokenStreamRewriteEngine::RewriteOperation::~RewriteOperation | ( | ) | [inline, virtual] |
Definition at line 107 of file TokenStreamRewriteEngine.hpp.
virtual size_t TokenStreamRewriteEngine::RewriteOperation::execute | ( | ANTLR_USE_NAMESPACE(std) ostream & | ) | [inline, virtual] |
Execute the rewrite operation by possibly adding to the buffer. Return the index of the next token to operate on.
Reimplemented in TokenStreamRewriteEngine::InsertBeforeOp, and TokenStreamRewriteEngine::ReplaceOp.
Definition at line 113 of file TokenStreamRewriteEngine.hpp.
Referenced by TokenStreamRewriteEngine::executeOperation::operator()().
virtual size_t TokenStreamRewriteEngine::RewriteOperation::getIndex | ( | ) | const [inline, virtual] |
Definition at line 116 of file TokenStreamRewriteEngine.hpp.
virtual const char* TokenStreamRewriteEngine::RewriteOperation::type | ( | ) | const [inline, virtual] |
Reimplemented in TokenStreamRewriteEngine::InsertBeforeOp, TokenStreamRewriteEngine::ReplaceOp, and TokenStreamRewriteEngine::DeleteOp.
Definition at line 119 of file TokenStreamRewriteEngine.hpp.
TokenStreamRewriteEngine::RewriteOperation::ANTLR_USE_NAMESPACE | ( | std | ) | [protected] |
size_t TokenStreamRewriteEngine::RewriteOperation::index [protected] |
Definition at line 123 of file TokenStreamRewriteEngine.hpp.