| 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 void GenerateSerializationCode(io::Printer* printer) const; | 77 void GenerateSerializationCode(io::Printer* printer) const; |
| 78 void GenerateSerializedSizeCode(io::Printer* printer) const; | 78 void GenerateSerializedSizeCode(io::Printer* printer) const; |
| 79 void GenerateFieldBuilderInitializationCode(io::Printer* printer) const; | 79 void GenerateFieldBuilderInitializationCode(io::Printer* printer) const; |
| 80 void GenerateEqualsCode(io::Printer* printer) const; | 80 void GenerateEqualsCode(io::Printer* printer) const; |
| 81 void GenerateHashCode(io::Printer* printer) const; | 81 void GenerateHashCode(io::Printer* printer) const; |
| 82 | 82 |
| 83 string GetBoxedType() const; | 83 string GetBoxedType() const; |
| 84 | 84 |
| 85 protected: | 85 protected: |
| 86 const FieldDescriptor* descriptor_; | 86 const FieldDescriptor* descriptor_; |
| 87 std::map<string, string> variables_; | 87 map<string, string> variables_; |
| 88 const int messageBitIndex_; | 88 const int messageBitIndex_; |
| 89 const int builderBitIndex_; | 89 const int builderBitIndex_; |
| 90 Context* context_; | 90 Context* context_; |
| 91 ClassNameResolver* name_resolver_; | 91 ClassNameResolver* name_resolver_; |
| 92 | 92 |
| 93 private: | 93 private: |
| 94 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(ImmutablePrimitiveFieldLiteGenerator); | 94 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(ImmutablePrimitiveFieldLiteGenerator); |
| 95 }; | 95 }; |
| 96 | 96 |
| 97 class ImmutablePrimitiveOneofFieldLiteGenerator | 97 class ImmutablePrimitiveOneofFieldLiteGenerator |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 void GenerateSerializationCode(io::Printer* printer) const; | 139 void GenerateSerializationCode(io::Printer* printer) const; |
| 140 void GenerateSerializedSizeCode(io::Printer* printer) const; | 140 void GenerateSerializedSizeCode(io::Printer* printer) const; |
| 141 void GenerateFieldBuilderInitializationCode(io::Printer* printer) const; | 141 void GenerateFieldBuilderInitializationCode(io::Printer* printer) const; |
| 142 void GenerateEqualsCode(io::Printer* printer) const; | 142 void GenerateEqualsCode(io::Printer* printer) const; |
| 143 void GenerateHashCode(io::Printer* printer) const; | 143 void GenerateHashCode(io::Printer* printer) const; |
| 144 | 144 |
| 145 string GetBoxedType() const; | 145 string GetBoxedType() const; |
| 146 | 146 |
| 147 private: | 147 private: |
| 148 const FieldDescriptor* descriptor_; | 148 const FieldDescriptor* descriptor_; |
| 149 std::map<string, string> variables_; | 149 map<string, string> variables_; |
| 150 const int messageBitIndex_; | 150 const int messageBitIndex_; |
| 151 const int builderBitIndex_; | 151 const int builderBitIndex_; |
| 152 Context* context_; | 152 Context* context_; |
| 153 ClassNameResolver* name_resolver_; | 153 ClassNameResolver* name_resolver_; |
| 154 | 154 |
| 155 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(RepeatedImmutablePrimitiveFieldLiteGenerator
); | 155 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(RepeatedImmutablePrimitiveFieldLiteGenerator
); |
| 156 }; | 156 }; |
| 157 | 157 |
| 158 } // namespace java | 158 } // namespace java |
| 159 } // namespace compiler | 159 } // namespace compiler |
| 160 } // namespace protobuf | 160 } // namespace protobuf |
| 161 | 161 |
| 162 } // namespace google | 162 } // namespace google |
| 163 #endif // GOOGLE_PROTOBUF_COMPILER_JAVA_PRIMITIVE_FIELD_LITE_H__ | 163 #endif // GOOGLE_PROTOBUF_COMPILER_JAVA_PRIMITIVE_FIELD_LITE_H__ |
| OLD | NEW |