TokenStreamRewriteEngine::RewriteOperation Class Reference

#include <TokenStreamRewriteEngine.hpp>

Inheritance diagram for TokenStreamRewriteEngine::RewriteOperation:

Inheritance graph

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

Detailed Description

Definition at line 100 of file TokenStreamRewriteEngine.hpp.

Constructor & Destructor Documentation

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.

Member Function Documentation

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]

TokenStreamRewriteEngine::RewriteOperation::ANTLR_USE_NAMESPACE ( std   )  [protected]

Field Documentation

Definition at line 123 of file TokenStreamRewriteEngine.hpp.

The documentation for this class was generated from the following file:

Generated on Tue Mar 31 20:19:28 2009 for ctrump by  doxygen 1.5.6