OpenMD 3.1
Molecular Dynamics in the Open
Loading...
Searching...
No Matches
antlr::MismatchedTokenException Class Reference
+ Inheritance diagram for antlr::MismatchedTokenException:

Public Member Functions

 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 std ::string &fileName_)
 
 MismatchedTokenException (const char *const *tokenNames_, const int numTokens_, RefToken token_, int expecting_, bool matchNot, const std ::string &fileName_)
 
 MismatchedTokenException (const char *const *tokenNames_, const int numTokens_, RefToken token_, BitSet set_, bool matchNot, const std ::string &fileName_)
 
std::string getMessage () const
 Returns a clean error message (no line number/column information)
 
- Public Member Functions inherited from antlr::RecognitionException
 RecognitionException (const std ::string &s)
 
 RecognitionException (const std ::string &s, const std ::string &fileName, int line, int column)
 
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 Member Functions inherited from antlr::ANTLRException
 ANTLRException ()
 Create ANTLR base exception without error message.
 
 ANTLRException (const std ::string &s)
 Create ANTLR base exception with error message.
 

Public Attributes

const RefToken token
 The token that was encountered.
 
const RefAST node
 The offending AST node if tree walking.
 
std::string tokenText
 taken from node or token object
 
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

static const int TOKEN = 1
 Types of tokens.
 
static const int NOT_TOKEN = 2
 
static const int RANGE = 3
 
static const int NOT_RANGE = 4
 
static const int SET = 5
 
static const int NOT_SET = 6
 

Additional Inherited Members

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

Detailed Description

Definition at line 22 of file MismatchedTokenException.hpp.

Constructor & Destructor Documentation

◆ MismatchedTokenException() [1/7]

antlr::MismatchedTokenException::MismatchedTokenException ( )

Definition at line 15 of file MismatchedTokenException.cpp.

◆ MismatchedTokenException() [2/7]

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

Expected range / not range.

Definition at line 25 of file MismatchedTokenException.cpp.

◆ MismatchedTokenException() [3/7]

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

Definition at line 45 of file MismatchedTokenException.cpp.

◆ MismatchedTokenException() [4/7]

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

Definition at line 63 of file MismatchedTokenException.cpp.

◆ MismatchedTokenException() [5/7]

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

Definition at line 81 of file MismatchedTokenException.cpp.

◆ MismatchedTokenException() [6/7]

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

Definition at line 102 of file MismatchedTokenException.cpp.

◆ MismatchedTokenException() [7/7]

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

Definition at line 121 of file MismatchedTokenException.cpp.

◆ ~MismatchedTokenException()

antlr::MismatchedTokenException::~MismatchedTokenException ( )
throw ( )
inline

Definition at line 84 of file MismatchedTokenException.hpp.

Member Function Documentation

◆ getMessage()

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

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

Reimplemented from antlr::ANTLRException.

Definition at line 139 of file MismatchedTokenException.cpp.

References expecting, antlr::ANTLRException::getMessage(), mismatchType, TOKEN, tokenText, and upper.

Member Data Documentation

◆ expecting

int antlr::MismatchedTokenException::expecting

For TOKEN/NOT_TOKEN and RANGE/NOT_RANGE.

Definition at line 123 of file MismatchedTokenException.hpp.

Referenced by getMessage().

◆ mismatchType

int antlr::MismatchedTokenException::mismatchType

One of the above.

Definition at line 120 of file MismatchedTokenException.hpp.

Referenced by getMessage().

◆ node

const RefAST antlr::MismatchedTokenException::node

The offending AST node if tree walking.

Definition at line 95 of file MismatchedTokenException.hpp.

◆ NOT_RANGE

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

Definition at line 104 of file MismatchedTokenException.hpp.

◆ NOT_SET

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

Definition at line 106 of file MismatchedTokenException.hpp.

◆ NOT_TOKEN

const int antlr::MismatchedTokenException::NOT_TOKEN = 2
static

Definition at line 102 of file MismatchedTokenException.hpp.

◆ RANGE

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

Definition at line 103 of file MismatchedTokenException.hpp.

◆ SET

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

Definition at line 105 of file MismatchedTokenException.hpp.

◆ set

BitSet antlr::MismatchedTokenException::set

For SET/NOT_SET.

Definition at line 129 of file MismatchedTokenException.hpp.

◆ TOKEN

const int antlr::MismatchedTokenException::TOKEN = 1
static

Types of tokens.

Definition at line 101 of file MismatchedTokenException.hpp.

Referenced by getMessage().

◆ token

const RefToken antlr::MismatchedTokenException::token

The token that was encountered.

Definition at line 93 of file MismatchedTokenException.hpp.

◆ tokenText

std::string antlr::MismatchedTokenException::tokenText

taken from node or token object

Definition at line 97 of file MismatchedTokenException.hpp.

Referenced by getMessage().

◆ upper

int antlr::MismatchedTokenException::upper

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

Definition at line 126 of file MismatchedTokenException.hpp.

Referenced by getMessage().


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