ANTLR Support Libraries 2.7.1+
Loading...
Searching...
No Matches
MismatchedCharException Class Reference

#include <MismatchedCharException.hpp>

Inheritance diagram for MismatchedCharException:
Collaboration diagram for MismatchedCharException:

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.
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)
virtual std::string getFileLineColumnString () const
 See what file/line/column info is present and return it as a string.

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() [1/4]

MismatchedCharException::MismatchedCharException ( )

◆ MismatchedCharException() [2/4]

MismatchedCharException::MismatchedCharException ( int c,
int lower,
int upper_,
bool matchNot,
CharScanner * scanner_ )

◆ MismatchedCharException() [3/4]

MismatchedCharException::MismatchedCharException ( int c,
int expecting_,
bool matchNot,
CharScanner * scanner_ )

◆ MismatchedCharException() [4/4]

MismatchedCharException::MismatchedCharException ( int c,
BitSet set_,
bool matchNot,
CharScanner * scanner_ )

◆ ~MismatchedCharException()

MismatchedCharException::~MismatchedCharException ( )
throw ( )
inline

Member Function Documentation

◆ getMessage()

std::string MismatchedCharException::getMessage ( ) const

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

Member Data Documentation

◆ CHAR

const int MismatchedCharException::CHAR = 1
static

◆ expecting

int MismatchedCharException::expecting

◆ foundChar

int MismatchedCharException::foundChar

◆ mismatchType

int MismatchedCharException::mismatchType

◆ NOT_CHAR

const int MismatchedCharException::NOT_CHAR = 2
static

◆ NOT_RANGE

const int MismatchedCharException::NOT_RANGE = 4
static

◆ NOT_SET

const int MismatchedCharException::NOT_SET = 6
static

◆ RANGE

const int MismatchedCharException::RANGE = 3
static

◆ scanner

CharScanner* MismatchedCharException::scanner
protected

◆ SET

const int MismatchedCharException::SET = 5
static

◆ set

BitSet MismatchedCharException::set

◆ upper

int MismatchedCharException::upper

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