#include "idl_gen_java.h"
#include "flatbuffers/code_generators.h"
#include "flatbuffers/flatbuffers.h"
#include "flatbuffers/idl.h"
#include "flatbuffers/util.h"
#include "idl_namer.h"
namespace flatbuffers {
namespace java {
namespace {
static Namer::Config JavaDefaultConfig() { … }
static std::set<std::string> JavaKeywords() { … }
static const TypedFloatConstantGenerator JavaFloatGen("Double.", "Float.",
"NaN",
"POSITIVE_INFINITY",
"NEGATIVE_INFINITY");
static const CommentConfig comment_config = …;
}
class JavaGenerator : public BaseGenerator { … };
}
static bool GenerateJava(const Parser &parser, const std::string &path,
const std::string &file_name) { … }
namespace {
class JavaCodeGenerator : public CodeGenerator { … };
}
std::unique_ptr<CodeGenerator> NewJavaCodeGenerator() { … }
}