10 #ifndef _EMBEDDED_RPC__ANNOTATION_H_ 11 #define _EMBEDDED_RPC__ANNOTATION_H_ 48 : m_name(token.getStringValue())
63 : m_name(token.getStringValue())
80 , m_location(a.m_location)
90 std::string
getName()
const {
return m_name; }
113 program_lang_t
getLang()
const {
return m_lang; }
133 program_lang_t m_lang;
138 #endif // _EMBEDDED_RPC__ANNOTATION_H_ Annotation(const Token &token, Value *val, program_lang_t lang)
Constructor.
Definition: Annotation.h:47
Annotation class.
Definition: Annotation.h:28
Annotation(const Annotation &a)
Constructor.
Definition: Annotation.h:77
std::string toString()
This function returns toString representation.
Definition: Annotation.h:120
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:97
Abstract base class for values of arbitrary types.
Definition: Value.h:27
program_lang_t getLang() const
This function returns programming language type for which is annotation intended. ...
Definition: Annotation.h:113
Encapsulates all information about a token.
Definition: Token.h:60
std::string getName() const
This function returns annotation name.
Definition: Annotation.h:90
token_loc_t & getLocation()
This function returns location for symbol.
Definition: Annotation.h:127
Token location in the source file.
Definition: Token.h:25
Annotation(const Token &token)
Constructor.
Definition: Annotation.h:62
Value * getValueObject()
This function returns annotation value.
Definition: Type.cpp:49