Public Member Functions | Private Member Functions | Private Attributes | List of all members
google::protobuf::compiler::java::FileGenerator Class Reference

#include <java_file.h>

Public Member Functions

const std::string & classname ()
 
const std::string & classname ()
 
 FileGenerator (const FileDescriptor *file, const Options &options, bool immutable_api=true)
 
 FileGenerator (const FileDescriptor *file, const Options &options, bool immutable_api=true)
 
void Generate (io::Printer *printer)
 
void Generate (io::Printer *printer)
 
void GenerateKotlinSiblings (const std::string &package_dir, GeneratorContext *generator_context, std::vector< std::string > *file_list, std::vector< std::string > *annotation_list)
 
void GenerateSiblings (const std::string &package_dir, GeneratorContext *generator_context, std::vector< std::string > *file_list, std::vector< std::string > *annotation_list)
 
void GenerateSiblings (const std::string &package_dir, GeneratorContext *generator_context, std::vector< std::string > *file_list, std::vector< std::string > *annotation_list)
 
std::string GetKotlinClassname ()
 
const std::string & java_package ()
 
const std::string & java_package ()
 
bool Validate (std::string *error)
 
bool Validate (std::string *error)
 
 ~FileGenerator ()
 
 ~FileGenerator ()
 

Private Member Functions

void GenerateDescriptorInitializationCodeForImmutable (io::Printer *printer)
 
void GenerateDescriptorInitializationCodeForImmutable (io::Printer *printer)
 
void GenerateDescriptorInitializationCodeForMutable (io::Printer *printer)
 
void GenerateDescriptorInitializationCodeForMutable (io::Printer *printer)
 
 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS (FileGenerator)
 
 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS (FileGenerator)
 
bool ShouldIncludeDependency (const FileDescriptor *descriptor, bool immutable_api_)
 
bool ShouldIncludeDependency (const FileDescriptor *descriptor, bool immutable_api_)
 

Private Attributes

std::string classname_
 
std::unique_ptr< Contextcontext_
 
std::vector< std::unique_ptr< ExtensionGenerator > > extension_generators_
 
const FileDescriptorfile_
 
std::unique_ptr< GeneratorFactorygenerator_factory_
 
bool immutable_api_
 
std::string java_package_
 
std::vector< std::unique_ptr< MessageGenerator > > message_generators_
 
ClassNameResolvername_resolver_
 
const Options options_
 

Detailed Description

Definition at line 68 of file bloaty/third_party/protobuf/src/google/protobuf/compiler/java/java_file.h.

Constructor & Destructor Documentation

◆ FileGenerator() [1/2]

google::protobuf::compiler::java::FileGenerator::FileGenerator ( const FileDescriptor file,
const Options options,
bool  immutable_api = true 
)

◆ ~FileGenerator() [1/2]

google::protobuf::compiler::java::FileGenerator::~FileGenerator ( )

◆ FileGenerator() [2/2]

google::protobuf::compiler::java::FileGenerator::FileGenerator ( const FileDescriptor file,
const Options options,
bool  immutable_api = true 
)

◆ ~FileGenerator() [2/2]

google::protobuf::compiler::java::FileGenerator::~FileGenerator ( )

Member Function Documentation

◆ classname() [1/2]

const std::string& google::protobuf::compiler::java::FileGenerator::classname ( )
inline

◆ classname() [2/2]

const std::string& google::protobuf::compiler::java::FileGenerator::classname ( )
inline

◆ Generate() [1/2]

void google::protobuf::compiler::java::FileGenerator::Generate ( io::Printer printer)

◆ Generate() [2/2]

void google::protobuf::compiler::java::FileGenerator::Generate ( io::Printer printer)

◆ GenerateDescriptorInitializationCodeForImmutable() [1/2]

void google::protobuf::compiler::java::FileGenerator::GenerateDescriptorInitializationCodeForImmutable ( io::Printer printer)
private

◆ GenerateDescriptorInitializationCodeForImmutable() [2/2]

void google::protobuf::compiler::java::FileGenerator::GenerateDescriptorInitializationCodeForImmutable ( io::Printer printer)
private

◆ GenerateDescriptorInitializationCodeForMutable() [1/2]

void google::protobuf::compiler::java::FileGenerator::GenerateDescriptorInitializationCodeForMutable ( io::Printer printer)
private

◆ GenerateDescriptorInitializationCodeForMutable() [2/2]

void google::protobuf::compiler::java::FileGenerator::GenerateDescriptorInitializationCodeForMutable ( io::Printer printer)
private

◆ GenerateKotlinSiblings()

void google::protobuf::compiler::java::FileGenerator::GenerateKotlinSiblings ( const std::string &  package_dir,
GeneratorContext generator_context,
std::vector< std::string > *  file_list,
std::vector< std::string > *  annotation_list 
)

◆ GenerateSiblings() [1/2]

void google::protobuf::compiler::java::FileGenerator::GenerateSiblings ( const std::string &  package_dir,
GeneratorContext generator_context,
std::vector< std::string > *  file_list,
std::vector< std::string > *  annotation_list 
)

◆ GenerateSiblings() [2/2]

void google::protobuf::compiler::java::FileGenerator::GenerateSiblings ( const std::string &  package_dir,
GeneratorContext generator_context,
std::vector< std::string > *  file_list,
std::vector< std::string > *  annotation_list 
)

◆ GetKotlinClassname()

std::string google::protobuf::compiler::java::FileGenerator::GetKotlinClassname ( )

◆ GOOGLE_DISALLOW_EVIL_CONSTRUCTORS() [1/2]

google::protobuf::compiler::java::FileGenerator::GOOGLE_DISALLOW_EVIL_CONSTRUCTORS ( FileGenerator  )
private

◆ GOOGLE_DISALLOW_EVIL_CONSTRUCTORS() [2/2]

google::protobuf::compiler::java::FileGenerator::GOOGLE_DISALLOW_EVIL_CONSTRUCTORS ( FileGenerator  )
private

◆ java_package() [1/2]

const std::string& google::protobuf::compiler::java::FileGenerator::java_package ( )
inline

◆ java_package() [2/2]

const std::string& google::protobuf::compiler::java::FileGenerator::java_package ( )
inline

◆ ShouldIncludeDependency() [1/2]

bool google::protobuf::compiler::java::FileGenerator::ShouldIncludeDependency ( const FileDescriptor descriptor,
bool  immutable_api_ 
)
private

◆ ShouldIncludeDependency() [2/2]

bool google::protobuf::compiler::java::FileGenerator::ShouldIncludeDependency ( const FileDescriptor descriptor,
bool  immutable_api_ 
)
private

◆ Validate() [1/2]

bool google::protobuf::compiler::java::FileGenerator::Validate ( std::string *  error)

◆ Validate() [2/2]

bool google::protobuf::compiler::java::FileGenerator::Validate ( std::string *  error)

Member Data Documentation

◆ classname_

std::string google::protobuf::compiler::java::FileGenerator::classname_
private

◆ context_

std::unique_ptr< Context > google::protobuf::compiler::java::FileGenerator::context_
private

◆ extension_generators_

std::vector< std::unique_ptr< ExtensionGenerator > > google::protobuf::compiler::java::FileGenerator::extension_generators_
private

◆ file_

const FileDescriptor * google::protobuf::compiler::java::FileGenerator::file_
private

◆ generator_factory_

std::unique_ptr< GeneratorFactory > google::protobuf::compiler::java::FileGenerator::generator_factory_
private

◆ immutable_api_

bool google::protobuf::compiler::java::FileGenerator::immutable_api_
private

◆ java_package_

std::string google::protobuf::compiler::java::FileGenerator::java_package_
private

◆ message_generators_

std::vector< std::unique_ptr< MessageGenerator > > google::protobuf::compiler::java::FileGenerator::message_generators_
private

◆ name_resolver_

ClassNameResolver * google::protobuf::compiler::java::FileGenerator::name_resolver_
private

◆ options_

const Options google::protobuf::compiler::java::FileGenerator::options_
private

The documentation for this class was generated from the following files:


grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:23