blob: cf0ec68cbea8c4035716592a35b247bd6f071ae5 [file] [log] [blame]
Andreas Huberc9410c72016-07-28 12:18:40 -07001#include "Constant.h"
2
3#include "Formatter.h"
4#include "Type.h"
5
6namespace android {
7
8Constant::Constant(const char *name, Type *type, const char *value)
9 : mName(name),
10 mType(type),
11 mValue(value) {
12}
13
14std::string Constant::name() const {
15 return mName;
16}
17
18const Type *Constant::type() const {
19 return mType;
20}
21
22std::string Constant::value() const {
23 return mValue;
24}
25
Andreas Huberc9410c72016-07-28 12:18:40 -070026} // namespace android
27