aboutsummaryrefslogtreecommitdiff
path: root/include/flatbuffers/idl.h
diff options
context:
space:
mode:
authorEdward <ed.foux@gmail.com>2019-08-19 12:46:48 -0700
committerWouter van Oortmerssen <aardappel@gmail.com>2019-08-19 12:46:48 -0700
commita20e71ac96f87d3b3af9ffc070d0e3d9a421b1f9 (patch)
treea8570683b3a04d57e46557fb5564c5ff34da75be /include/flatbuffers/idl.h
parentacc9990abd2206491480291b0f85f925110102ea (diff)
downloadflatbuffers-a20e71ac96f87d3b3af9ffc070d0e3d9a421b1f9.tar.gz
has_method support for primitive fields in java runtime. Changed: idl.h, FlatBufferBuilder.java , idl_gen_general.cpp, idl_parser.cpp, flatc.cpp (#5468)
* has_method support for primitive fields in java runtime * adding the new flag to flatc * addressing the review comments
Diffstat (limited to 'include/flatbuffers/idl.h')
-rw-r--r--include/flatbuffers/idl.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/flatbuffers/idl.h b/include/flatbuffers/idl.h
index 44e35665..fe68b0d8 100644
--- a/include/flatbuffers/idl.h
+++ b/include/flatbuffers/idl.h
@@ -528,6 +528,7 @@ struct IDLOptions {
bool size_prefixed;
std::string root_type;
bool force_defaults;
+ bool java_primitive_has_method;
std::vector<std::string> cpp_includes;
// Possible options for the more general generator below.
@@ -602,6 +603,7 @@ struct IDLOptions {
protobuf_ascii_alike(false),
size_prefixed(false),
force_defaults(false),
+ java_primitive_has_method(false),
lang(IDLOptions::kJava),
mini_reflect(IDLOptions::kNone),
lang_to_generate(0),
@@ -927,6 +929,8 @@ class Parser : public ParserState {
extern std::string MakeCamel(const std::string &in, bool first = true);
+extern std::string MakeScreamingCamel(const std::string &in);
+
// Generate text (JSON) from a given FlatBuffer, and a given Parser
// object that has been populated with the corresponding schema.
// If ident_step is 0, no indentation will be generated. Additionally,