| 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 29 matching lines...) Expand all Loading... |
| 40 #include <google/protobuf/compiler/java/java_field.h> | 40 #include <google/protobuf/compiler/java/java_field.h> |
| 41 #include <google/protobuf/compiler/java/java_message.h> | 41 #include <google/protobuf/compiler/java/java_message.h> |
| 42 | 42 |
| 43 namespace google { | 43 namespace google { |
| 44 namespace protobuf { | 44 namespace protobuf { |
| 45 namespace compiler { | 45 namespace compiler { |
| 46 namespace java { | 46 namespace java { |
| 47 | 47 |
| 48 class ImmutableMessageLiteGenerator : public MessageGenerator { | 48 class ImmutableMessageLiteGenerator : public MessageGenerator { |
| 49 public: | 49 public: |
| 50 ImmutableMessageLiteGenerator(const Descriptor* descriptor, Context* context); | 50 explicit ImmutableMessageLiteGenerator(const Descriptor* descriptor, |
| 51 Context* context); |
| 51 virtual ~ImmutableMessageLiteGenerator(); | 52 virtual ~ImmutableMessageLiteGenerator(); |
| 52 | 53 |
| 53 virtual void Generate(io::Printer* printer); | 54 virtual void Generate(io::Printer* printer); |
| 54 virtual void GenerateInterface(io::Printer* printer); | 55 virtual void GenerateInterface(io::Printer* printer); |
| 55 virtual void GenerateExtensionRegistrationCode(io::Printer* printer); | 56 virtual void GenerateExtensionRegistrationCode(io::Printer* printer); |
| 56 virtual void GenerateStaticVariables( | 57 virtual void GenerateStaticVariables( |
| 57 io::Printer* printer, int* bytecode_estimate); | 58 io::Printer* printer, int* bytecode_estimate); |
| 58 virtual int GenerateStaticVariableInitializers(io::Printer* printer); | 59 virtual int GenerateStaticVariableInitializers(io::Printer* printer); |
| 59 | 60 |
| 60 private: | 61 private: |
| (...skipping 22 matching lines...) Expand all Loading... |
| 83 | 84 |
| 84 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(ImmutableMessageLiteGenerator); | 85 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(ImmutableMessageLiteGenerator); |
| 85 }; | 86 }; |
| 86 | 87 |
| 87 } // namespace java | 88 } // namespace java |
| 88 } // namespace compiler | 89 } // namespace compiler |
| 89 } // namespace protobuf | 90 } // namespace protobuf |
| 90 | 91 |
| 91 } // namespace google | 92 } // namespace google |
| 92 #endif // GOOGLE_PROTOBUF_COMPILER_JAVA_MESSAGE_LITE_H__ | 93 #endif // GOOGLE_PROTOBUF_COMPILER_JAVA_MESSAGE_LITE_H__ |
| OLD | NEW |