| 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 } | 60 } |
| 61 } | 61 } |
| 62 } | 62 } |
| 63 | 63 |
| 64 namespace protobuf { | 64 namespace protobuf { |
| 65 namespace compiler { | 65 namespace compiler { |
| 66 namespace java { | 66 namespace java { |
| 67 | 67 |
| 68 class FileGenerator { | 68 class FileGenerator { |
| 69 public: | 69 public: |
| 70 FileGenerator(const FileDescriptor* file, bool immutable_api = true); | 70 FileGenerator(const FileDescriptor* file, bool immutable_api = true, |
| 71 bool enforce_lite = false); |
| 71 ~FileGenerator(); | 72 ~FileGenerator(); |
| 72 | 73 |
| 73 // Checks for problems that would otherwise lead to cryptic compile errors. | 74 // Checks for problems that would otherwise lead to cryptic compile errors. |
| 74 // Returns true if there are no problems, or writes an error description to | 75 // Returns true if there are no problems, or writes an error description to |
| 75 // the given string and returns false otherwise. | 76 // the given string and returns false otherwise. |
| 76 bool Validate(string* error); | 77 bool Validate(string* error); |
| 77 | 78 |
| 78 void Generate(io::Printer* printer); | 79 void Generate(io::Printer* printer); |
| 79 | 80 |
| 80 // If we aren't putting everything into one file, this will write all the | 81 // If we aren't putting everything into one file, this will write all the |
| (...skipping 28 matching lines...) Expand all Loading... |
| 109 | 110 |
| 110 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(FileGenerator); | 111 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(FileGenerator); |
| 111 }; | 112 }; |
| 112 | 113 |
| 113 } // namespace java | 114 } // namespace java |
| 114 } // namespace compiler | 115 } // namespace compiler |
| 115 } // namespace protobuf | 116 } // namespace protobuf |
| 116 | 117 |
| 117 } // namespace google | 118 } // namespace google |
| 118 #endif // GOOGLE_PROTOBUF_COMPILER_JAVA_FILE_H__ | 119 #endif // GOOGLE_PROTOBUF_COMPILER_JAVA_FILE_H__ |
| OLD | NEW |