OpenMD  2.5
Molecular Dynamics in the Open
antlr::MismatchedCharException Class Reference

#include <MismatchedCharException.hpp>

Inheritance diagram for antlr::MismatchedCharException:
antlr::RecognitionException antlr::ANTLRException

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 antlr::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 Member Functions inherited from antlr::ANTLRException
 ANTLRException ()
 Create ANTLR base exception without error message. More...
 
 ANTLRException (const std ::string &s)
 Create ANTLR base exception with error message. More...
 
virtual ~ANTLRException () throw ()
 

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 antlr::RecognitionException
std ::string fileName
 
int line
 
int column
 

Detailed Description

Definition at line 21 of file MismatchedCharException.hpp.

Constructor & Destructor Documentation

◆ MismatchedCharException() [1/4]

antlr::MismatchedCharException::MismatchedCharException ( )

Definition at line 16 of file MismatchedCharException.cpp.

◆ MismatchedCharException() [2/4]

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

Definition at line 21 of file MismatchedCharException.cpp.

◆ MismatchedCharException() [3/4]

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

Definition at line 39 of file MismatchedCharException.cpp.

◆ MismatchedCharException() [4/4]

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

Definition at line 55 of file MismatchedCharException.cpp.

◆ ~MismatchedCharException()

antlr::MismatchedCharException::~MismatchedCharException ( )
throw (
)
inline

Definition at line 90 of file MismatchedCharException.hpp.

References ANTLR_USE_NAMESPACE.

Member Function Documentation

◆ getMessage()

std::string antlr::MismatchedCharException::getMessage ( ) const
virtual

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

Reimplemented from antlr::ANTLRException.

Definition at line 70 of file MismatchedCharException.cpp.

References ANTLR_USE_NAMESPACE, CHAR, antlr::charName(), expecting, foundChar, antlr::ANTLRException::getMessage(), mismatchType, NOT_CHAR, NOT_RANGE, NOT_SET, RANGE, SET, and upper.

Referenced by OpenMD::SimCreator::parseFile().

Member Data Documentation

◆ CHAR

const int antlr::MismatchedCharException::CHAR = 1
static

Definition at line 25 of file MismatchedCharException.hpp.

Referenced by getMessage().

◆ expecting

int antlr::MismatchedCharException::expecting

Definition at line 50 of file MismatchedCharException.hpp.

Referenced by getMessage().

◆ foundChar

int antlr::MismatchedCharException::foundChar

Definition at line 47 of file MismatchedCharException.hpp.

Referenced by getMessage().

◆ mismatchType

int antlr::MismatchedCharException::mismatchType

Definition at line 44 of file MismatchedCharException.hpp.

Referenced by getMessage().

◆ NOT_CHAR

const int antlr::MismatchedCharException::NOT_CHAR = 2
static

Definition at line 26 of file MismatchedCharException.hpp.

Referenced by getMessage().

◆ NOT_RANGE

const int antlr::MismatchedCharException::NOT_RANGE = 4
static

Definition at line 28 of file MismatchedCharException.hpp.

Referenced by getMessage().

◆ NOT_SET

const int antlr::MismatchedCharException::NOT_SET = 6
static

Definition at line 30 of file MismatchedCharException.hpp.

Referenced by getMessage().

◆ RANGE

const int antlr::MismatchedCharException::RANGE = 3
static

Definition at line 27 of file MismatchedCharException.hpp.

Referenced by getMessage().

◆ scanner

CharScanner* antlr::MismatchedCharException::scanner
protected

Definition at line 60 of file MismatchedCharException.hpp.

◆ SET

const int antlr::MismatchedCharException::SET = 5
static

Definition at line 29 of file MismatchedCharException.hpp.

Referenced by getMessage().

◆ set

BitSet antlr::MismatchedCharException::set

Definition at line 56 of file MismatchedCharException.hpp.

◆ upper

int antlr::MismatchedCharException::upper

Definition at line 53 of file MismatchedCharException.hpp.

Referenced by getMessage().


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