| OLD | NEW |
| 1 // Protocol Buffers - Google's data interchange format | 1 // Protocol Buffers - Google's data interchange format |
| 2 // Copyright 2008 Google Inc. All rights reserved. | 2 // Copyright 2008 Google Inc. All rights reserved. |
| 3 // https://developers.google.com/protocol-buffers/ | 3 // https://developers.google.com/protocol-buffers/ |
| 4 // | 4 // |
| 5 // Redistribution and use in source and binary forms, with or without | 5 // Redistribution and use in source and binary forms, with or without |
| 6 // modification, are permitted provided that the following conditions are | 6 // modification, are permitted provided that the following conditions are |
| 7 // met: | 7 // met: |
| 8 // | 8 // |
| 9 // * Redistributions of source code must retain the above copyright | 9 // * Redistributions of source code must retain the above copyright |
| 10 // notice, this list of conditions and the following disclaimer. | 10 // notice, this list of conditions and the following disclaimer. |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 void GenerateSerializationCode(io::Printer* printer) const; | 60 void GenerateSerializationCode(io::Printer* printer) const; |
| 61 void GenerateSerializedSizeCode(io::Printer* printer) const; | 61 void GenerateSerializedSizeCode(io::Printer* printer) const; |
| 62 void GenerateFieldBuilderInitializationCode(io::Printer* printer) const; | 62 void GenerateFieldBuilderInitializationCode(io::Printer* printer) const; |
| 63 void GenerateEqualsCode(io::Printer* printer) const; | 63 void GenerateEqualsCode(io::Printer* printer) const; |
| 64 void GenerateHashCode(io::Printer* printer) const; | 64 void GenerateHashCode(io::Printer* printer) const; |
| 65 | 65 |
| 66 string GetBoxedType() const; | 66 string GetBoxedType() const; |
| 67 | 67 |
| 68 private: | 68 private: |
| 69 const FieldDescriptor* descriptor_; | 69 const FieldDescriptor* descriptor_; |
| 70 map<string, string> variables_; | 70 std::map<string, string> variables_; |
| 71 ClassNameResolver* name_resolver_; | 71 ClassNameResolver* name_resolver_; |
| 72 void GenerateMapGetters(io::Printer* printer) const; |
| 72 }; | 73 }; |
| 73 | 74 |
| 74 } // namespace java | 75 } // namespace java |
| 75 } // namespace compiler | 76 } // namespace compiler |
| 76 } // namespace protobuf | 77 } // namespace protobuf |
| 77 | 78 |
| 78 } // namespace google | 79 } // namespace google |
| 79 #endif // GOOGLE_PROTOBUF_COMPILER_JAVA_MAP_FIELD_H__ | 80 #endif // GOOGLE_PROTOBUF_COMPILER_JAVA_MAP_FIELD_H__ |
| OLD | NEW |