10 #ifndef _EMBEDDED_RPC__ANNOTATION_H_ 11 #define _EMBEDDED_RPC__ANNOTATION_H_ 13 #include "AstNode.hpp" 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.hpp:47
Annotation class.
Definition: Annotation.hpp:28
Annotation(const Annotation &a)
Constructor.
Definition: Annotation.hpp:77
std::string toString()
This function returns toString representation.
Definition: Annotation.hpp: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.hpp:97
Abstract base class for values of arbitrary types.
Definition: Value.hpp:27
program_lang_t getLang() const
This function returns programming language type for which is annotation intended. ...
Definition: Annotation.hpp:113
Encapsulates all information about a token.
Definition: Token.hpp:60
std::string getName() const
This function returns annotation name.
Definition: Annotation.hpp:90
token_loc_t & getLocation()
This function returns location for symbol.
Definition: Annotation.hpp:127
Token location in the source file.
Definition: Token.hpp:25
Annotation(const Token &token)
Constructor.
Definition: Annotation.hpp:62
Value * getValueObject()
This function returns annotation value.
Definition: Type.cpp:50
Definition: AstNode.hpp:26