10 #ifndef _EMBEDDED_RPC__ANNOTATION_H_ 11 #define _EMBEDDED_RPC__ANNOTATION_H_ 47 : m_name(token.getStringValue())
62 : m_name(token.getStringValue())
79 , m_location(a.m_location)
89 std::string
getName()
const {
return m_name; }
112 program_lang_t
getLang()
const {
return m_lang; }
132 program_lang_t m_lang;
137 #endif // _EMBEDDED_RPC__ANNOTATION_H_ Annotation(const Token &token, Value *val, program_lang_t lang)
Constructor.
Definition: Annotation.h:46
Annotation class.
Definition: Annotation.h:27
Annotation(const Annotation &a)
Constructor.
Definition: Annotation.h:76
std::string toString()
This function returns toString representation.
Definition: Annotation.h:119
virtual std::string toString() const =0
Get Value type string representation.
bool hasValue()
Checks to see if value instance member is null.
Definition: Annotation.h:96
Abstract base class for values of arbitrary types.
Definition: Value.h:21
program_lang_t getLang() const
This function returns programming language type for which is annotation intended. ...
Definition: Annotation.h:112
Encapsulates all information about a token.
Definition: Token.h:60
std::string getName() const
This function returns annotation name.
Definition: Annotation.h:89
token_loc_t & getLocation()
This function returns location for symbol.
Definition: Annotation.h:126
Token location in the source file.
Definition: Token.h:25
Annotation(const Token &token)
Constructor.
Definition: Annotation.h:61
Value * getValueObject()
This function returns annotation value.
Definition: Type.cpp:48