36 #ifndef _EMBEDDED_RPC__ANNOTATION_H_ 37 #define _EMBEDDED_RPC__ANNOTATION_H_ 73 : m_name(token.getStringValue())
88 : m_name(token.getStringValue())
105 , m_location(a.m_location)
115 std::string
getName()
const {
return m_name; }
138 program_lang_t
getLang()
const {
return m_lang; }
158 program_lang_t m_lang;
163 #endif // _EMBEDDED_RPC__ANNOTATION_H_ Annotation(const Token &token, Value *val, program_lang_t lang)
Constructor.
Definition: Annotation.h:72
Annotation class.
Definition: Annotation.h:53
Annotation(const Annotation &a)
Constructor.
Definition: Annotation.h:102
std::string toString()
This function returns toString representation.
Definition: Annotation.h:145
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:122
Abstract base class for values of arbitrary types.
Definition: Value.h:47
program_lang_t getLang() const
This function returns programming language type for which is annotation intended. ...
Definition: Annotation.h:138
Encapsulates all information about a token.
Definition: Token.h:86
std::string getName() const
This function returns annotation name.
Definition: Annotation.h:115
token_loc_t & getLocation()
This function returns location for symbol.
Definition: Annotation.h:152
Token location in the source file.
Definition: Token.h:51
Annotation(const Token &token)
Constructor.
Definition: Annotation.h:87
Value * getValueObject()
This function returns annotation value.
Definition: Type.cpp:74