Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

MismatchedTokenException Class Reference

#include <MismatchedTokenException.hpp>

Inheritance diagram for MismatchedTokenException:

RecognitionException ANTLRException List of all members.

Public Methods

 MismatchedTokenException ()
 MismatchedTokenException (const char *const *tokenNames_, const int numTokens_, RefAST node_, int lower, int upper_, bool matchNot)
 Expected range / not range.

 MismatchedTokenException (const char *const *tokenNames_, const int numTokens_, RefAST node_, int expecting_, bool matchNot)
 MismatchedTokenException (const char *const *tokenNames_, const int numTokens_, RefAST node_, BitSet set_, bool matchNot)
 MismatchedTokenException (const char *const *tokenNames_, const int numTokens_, RefToken token_, int lower, int upper_, bool matchNot, const ANTLR_USE_NAMESPACE(std) string &fileName_)
 MismatchedTokenException (const char *const *tokenNames_, const int numTokens_, RefToken token_, int expecting_, bool matchNot, const ANTLR_USE_NAMESPACE(std) string &fileName_)
 MismatchedTokenException (const char *const *tokenNames_, const int numTokens_, RefToken token_, BitSet set_, bool matchNot, const ANTLR_USE_NAMESPACE(std) string &fileName_)
 ~MismatchedTokenException () throw ()
 ANTLR_USE_NAMESPACE (std) string getMessage() const
 ANTLR_USE_NAMESPACE (std) string tokenText
 taken from node or token object


Public Attributes

const RefToken token
 The token that was encountered.

const RefAST node
 The offending AST node if tree walking.

int mismatchType
 One of the above.

int expecting
 For TOKEN/NOT_TOKEN and RANGE/NOT_RANGE.

int upper
 For RANGE/NOT_RANGE (expecting is lower bound of range).

BitSet set
 For SET/NOT_SET.


Static Public Attributes

const int TOKEN = 1
 Types of tokens.

const int NOT_TOKEN = 2
const int RANGE = 3
const int NOT_RANGE = 4
const int SET = 5
const int NOT_SET = 6

Constructor & Destructor Documentation

MismatchedTokenException::MismatchedTokenException  
 

MismatchedTokenException::MismatchedTokenException const char *const *    tokenNames_,
const int    numTokens_,
RefAST    node_,
int    lower,
int    upper_,
bool    matchNot
 

Expected range / not range.

MismatchedTokenException::MismatchedTokenException const char *const *    tokenNames_,
const int    numTokens_,
RefAST    node_,
int    expecting_,
bool    matchNot
 

MismatchedTokenException::MismatchedTokenException const char *const *    tokenNames_,
const int    numTokens_,
RefAST    node_,
BitSet    set_,
bool    matchNot
 

MismatchedTokenException::MismatchedTokenException const char *const *    tokenNames_,
const int    numTokens_,
RefToken    token_,
int    lower,
int    upper_,
bool    matchNot,
const ANTLR_USE_NAMESPACE(std) string &    fileName_
 

MismatchedTokenException::MismatchedTokenException const char *const *    tokenNames_,
const int    numTokens_,
RefToken    token_,
int    expecting_,
bool    matchNot,
const ANTLR_USE_NAMESPACE(std) string &    fileName_
 

MismatchedTokenException::MismatchedTokenException const char *const *    tokenNames_,
const int    numTokens_,
RefToken    token_,
BitSet    set_,
bool    matchNot,
const ANTLR_USE_NAMESPACE(std) string &    fileName_
 

MismatchedTokenException::~MismatchedTokenException   throw () [inline]
 


Member Function Documentation

MismatchedTokenException::ANTLR_USE_NAMESPACE std   
 

taken from node or token object

Reimplemented from RecognitionException.

MismatchedTokenException::ANTLR_USE_NAMESPACE std    const [virtual]
 

Returns a clean error message (no line number/column information)

Reimplemented from RecognitionException.


Member Data Documentation

int MismatchedTokenException::expecting
 

For TOKEN/NOT_TOKEN and RANGE/NOT_RANGE.

int MismatchedTokenException::mismatchType
 

One of the above.

const RefAST MismatchedTokenException::node
 

The offending AST node if tree walking.

const int MismatchedTokenException::NOT_RANGE = 4 [static]
 

const int MismatchedTokenException::NOT_SET = 6 [static]
 

const int MismatchedTokenException::NOT_TOKEN = 2 [static]
 

const int MismatchedTokenException::RANGE = 3 [static]
 

BitSet MismatchedTokenException::set
 

For SET/NOT_SET.

const int MismatchedTokenException::SET = 5 [static]
 

const int MismatchedTokenException::TOKEN = 1 [static]
 

Types of tokens.

const RefToken MismatchedTokenException::token
 

The token that was encountered.

int MismatchedTokenException::upper
 

For RANGE/NOT_RANGE (expecting is lower bound of range).


The documentation for this class was generated from the following files:
Generated on Wed Nov 3 12:59:46 2004 for Lemur Toolkit by doxygen1.2.18