aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/google/protobuf/compiler/javanano/javanano_helpers.h
diff options
context:
space:
mode:
authorGravatar Jisi Liu <jisi.liu@gmail.com>2015-02-17 18:03:59 -0800
committerGravatar Jisi Liu <jisi.liu@gmail.com>2015-02-19 16:43:07 -0800
commit33222b5a024821df499eaf9060206ea70ebe4574 (patch)
tree9306e0661a19b8a8e270cebaa01f7cb1d4509daf /src/google/protobuf/compiler/javanano/javanano_helpers.h
parentf0e08fd4e4c33c87bbfb309b5baa4d6e976ddcc7 (diff)
Initial check in for primitive oneof fields.
Diffstat (limited to 'src/google/protobuf/compiler/javanano/javanano_helpers.h')
-rw-r--r--src/google/protobuf/compiler/javanano/javanano_helpers.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/google/protobuf/compiler/javanano/javanano_helpers.h b/src/google/protobuf/compiler/javanano/javanano_helpers.h
index b4fee649..b47ee4a4 100644
--- a/src/google/protobuf/compiler/javanano/javanano_helpers.h
+++ b/src/google/protobuf/compiler/javanano/javanano_helpers.h
@@ -54,7 +54,9 @@ extern const char kThinSeparator[];
// Converts the field's name to camel-case, e.g. "foo_bar_baz" becomes
// "fooBarBaz" or "FooBarBaz", respectively.
string UnderscoresToCamelCase(const FieldDescriptor* field);
+string UnderscoresToCamelCase(const OneofDescriptor* oneof);
string UnderscoresToCapitalizedCamelCase(const FieldDescriptor* field);
+string UnderscoresToCapitalizedCamelCase(const OneofDescriptor* oneof);
// Appends an "_" to the end of a field where the name is a reserved java
// keyword. For example int32 public = 1 will generate int public_.
@@ -189,6 +191,9 @@ inline bool IsMapEntry(const Descriptor* descriptor) {
bool HasMapField(const Descriptor* descriptor);
+void SetCommonOneofVariables(const FieldDescriptor* field,
+ map<string, string>* variables);
+
} // namespace javanano
} // namespace compiler
} // namespace protobuf