ANTLR Support Libraries 2.7.1+
Public Member Functions | Public Attributes | Static Public Attributes | Protected Attributes | List of all members
MismatchedCharException Class Reference

#include <MismatchedCharException.hpp>

Inheritance diagram for MismatchedCharException:
Inheritance graph
[legend]
Collaboration diagram for MismatchedCharException:
Collaboration graph
[legend]

Public Member Functions

 MismatchedCharException ()
 
 MismatchedCharException (int c, int lower, int upper_, bool matchNot, CharScanner *scanner_)
 
 MismatchedCharException (int c, int expecting_, bool matchNot, CharScanner *scanner_)
 
 MismatchedCharException (int c, BitSet set_, bool matchNot, CharScanner *scanner_)
 
 ~MismatchedCharException () throw ()
 
std::string getMessage () const
 
- Public Member Functions inherited from RecognitionException
 RecognitionException ()
 
 RecognitionException (const std::string &s)
 
 RecognitionException (const std::string &s, const std::string &fileName, int line, int column)
 
virtual ~RecognitionException () throw ()
 
virtual std::string getFilename () const throw ()
 Return file where mishap occurred. More...
 
virtual int getLine () const throw ()
 
virtual int getColumn () const throw ()
 
virtual std::string toString () const
 Return complete error message with line/column number info (if present) More...
 
virtual std::string getFileLineColumnString () const
 See what file/line/column info is present and return it as a string. More...
 

Public Attributes

int mismatchType
 
int foundChar
 
int expecting
 
int upper
 
BitSet set
 

Static Public Attributes

static const int CHAR = 1
 
static const int NOT_CHAR = 2
 
static const int RANGE = 3
 
static const int NOT_RANGE = 4
 
static const int SET = 5
 
static const int NOT_SET = 6
 

Protected Attributes

CharScannerscanner
 
- Protected Attributes inherited from RecognitionException
std::string fileName
 
int line
 
int column
 

Constructor & Destructor Documentation

MismatchedCharException::MismatchedCharException ( )
MismatchedCharException::MismatchedCharException ( int  c,
int  lower,
int  upper_,
bool  matchNot,
CharScanner scanner_ 
)
MismatchedCharException::MismatchedCharException ( int  c,
int  expecting_,
bool  matchNot,
CharScanner scanner_ 
)
MismatchedCharException::MismatchedCharException ( int  c,
BitSet  set_,
bool  matchNot,
CharScanner scanner_ 
)
MismatchedCharException::~MismatchedCharException ( )
throw (
)
inline

Member Function Documentation

std::string MismatchedCharException::getMessage ( ) const

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

Member Data Documentation

const int MismatchedCharException::CHAR = 1
static
int MismatchedCharException::expecting
int MismatchedCharException::foundChar
int MismatchedCharException::mismatchType
const int MismatchedCharException::NOT_CHAR = 2
static
const int MismatchedCharException::NOT_RANGE = 4
static
const int MismatchedCharException::NOT_SET = 6
static
const int MismatchedCharException::RANGE = 3
static
CharScanner* MismatchedCharException::scanner
protected
const int MismatchedCharException::SET = 5
static
BitSet MismatchedCharException::set
int MismatchedCharException::upper

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