blob: d0d24eadabc30f19842c324a30a448a091a42547 [file] [log] [blame]
Andreas Huberc9410c72016-07-28 12:18:40 -07001#ifndef NAMED_TYPE_H_
2
3#define NAMED_TYPE_H_
4
5#include "Type.h"
6
Andreas Huber31629bc2016-08-03 09:06:40 -07007#include "FQName.h"
8
Andreas Huberc9410c72016-07-28 12:18:40 -07009#include <string>
10
11namespace android {
12
13struct NamedType : public Type {
Andreas Huber31629bc2016-08-03 09:06:40 -070014 NamedType();
15
16 void setLocalName(const std::string &localName);
17 void setFullName(const FQName &fullName);
Andreas Huberc9410c72016-07-28 12:18:40 -070018
Andreas Huberbfd76212016-08-09 11:12:16 -070019 const FQName &fqName() const;
Andreas Huber0e00de42016-08-03 09:56:02 -070020 std::string localName() const;
Andreas Huber31629bc2016-08-03 09:06:40 -070021 std::string fullName() const;
Andreas Huber2831d512016-08-15 09:33:47 -070022 std::string fullJavaName() const;
Andreas Huberc9410c72016-07-28 12:18:40 -070023
24private:
Andreas Huber31629bc2016-08-03 09:06:40 -070025 std::string mLocalName;
26 FQName mFullName;
Andreas Huberc9410c72016-07-28 12:18:40 -070027
28 DISALLOW_COPY_AND_ASSIGN(NamedType);
29};
30
31} // namespace android
32
33#endif // NAMED_TYPE_H_
34