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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 string GetClassFullName(const string& name_without_package, | 105 string GetClassFullName(const string& name_without_package, |
106 const FileDescriptor* file, | 106 const FileDescriptor* file, |
107 bool immutable, | 107 bool immutable, |
108 bool multiple_files); | 108 bool multiple_files); |
109 // Get the Java Class style full name of a message. | 109 // Get the Java Class style full name of a message. |
110 string GetJavaClassFullName( | 110 string GetJavaClassFullName( |
111 const string& name_without_package, | 111 const string& name_without_package, |
112 const FileDescriptor* file, | 112 const FileDescriptor* file, |
113 bool immutable); | 113 bool immutable); |
114 // Caches the result to provide better performance. | 114 // Caches the result to provide better performance. |
115 std::map<const FileDescriptor*, string> file_immutable_outer_class_names_; | 115 map<const FileDescriptor*, string> file_immutable_outer_class_names_; |
116 | 116 |
117 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(ClassNameResolver); | 117 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(ClassNameResolver); |
118 }; | 118 }; |
119 | 119 |
120 } // namespace java | 120 } // namespace java |
121 } // namespace compiler | 121 } // namespace compiler |
122 } // namespace protobuf | 122 } // namespace protobuf |
123 | 123 |
124 } // namespace google | 124 } // namespace google |
125 #endif // GOOGLE_PROTOBUF_COMPILER_JAVA_NAME_RESOLVER_H__ | 125 #endif // GOOGLE_PROTOBUF_COMPILER_JAVA_NAME_RESOLVER_H__ |
OLD | NEW |