Public Member Functions | Private Member Functions | List of all members
google::protobuf::compiler::js::Generator Class Reference

#include <js_generator.h>

Inheritance diagram for google::protobuf::compiler::js::Generator:
Inheritance graph
[legend]

Public Member Functions

virtual bool Generate (const FileDescriptor *file, const std::string &parameter, GeneratorContext *context, std::string *error) const
 
virtual bool GenerateAll (const std::vector< const FileDescriptor * > &files, const std::string &parameter, GeneratorContext *context, std::string *error) const
 
 Generator ()
 
virtual bool HasGenerateAll () const
 
virtual ~Generator ()
 
- Public Member Functions inherited from google::protobuf::compiler::CodeGenerator
 CodeGenerator ()
 
virtual ~CodeGenerator ()
 

Private Member Functions

void FindProvides (const GeneratorOptions &options, io::Printer *printer, const std::vector< const FileDescriptor * > &file, std::set< std::string > *provided) const
 
void FindProvidesForEnum (const GeneratorOptions &options, io::Printer *printer, const EnumDescriptor *enumdesc, std::set< std::string > *provided) const
 
void FindProvidesForFields (const GeneratorOptions &options, io::Printer *printer, const std::vector< const FieldDescriptor * > &fields, std::set< std::string > *provided) const
 
void FindProvidesForFile (const GeneratorOptions &options, io::Printer *printer, const FileDescriptor *file, std::set< std::string > *provided) const
 
void FindProvidesForMessage (const GeneratorOptions &options, io::Printer *printer, const Descriptor *desc, std::set< std::string > *provided) const
 
void FindRequiresForExtension (const GeneratorOptions &options, const FieldDescriptor *field, std::set< std::string > *required, std::set< std::string > *forwards) const
 
void FindRequiresForField (const GeneratorOptions &options, const FieldDescriptor *field, std::set< std::string > *required, std::set< std::string > *forwards) const
 
void FindRequiresForMessage (const GeneratorOptions &options, const Descriptor *desc, std::set< std::string > *required, std::set< std::string > *forwards, bool *have_message) const
 
void GenerateClass (const GeneratorOptions &options, io::Printer *printer, const Descriptor *desc) const
 
void GenerateClassConstructor (const GeneratorOptions &options, io::Printer *printer, const Descriptor *desc) const
 
void GenerateClassConstructorAndDeclareExtensionFieldInfo (const GeneratorOptions &options, io::Printer *printer, const Descriptor *desc) const
 
void GenerateClassDeserialize (const GeneratorOptions &options, io::Printer *printer, const Descriptor *desc) const
 
void GenerateClassDeserializeBinary (const GeneratorOptions &options, io::Printer *printer, const Descriptor *desc) const
 
void GenerateClassDeserializeBinaryField (const GeneratorOptions &options, io::Printer *printer, const FieldDescriptor *field) const
 
void GenerateClassesAndEnums (const GeneratorOptions &options, io::Printer *printer, const FileDescriptor *file) const
 
void GenerateClassExtensionFieldInfo (const GeneratorOptions &options, io::Printer *printer, const Descriptor *desc) const
 
void GenerateClassField (const GeneratorOptions &options, io::Printer *printer, const FieldDescriptor *desc) const
 
void GenerateClassFieldFromObject (const GeneratorOptions &options, io::Printer *printer, const FieldDescriptor *field) const
 
void GenerateClassFieldInfo (const GeneratorOptions &options, io::Printer *printer, const Descriptor *desc) const
 
void GenerateClassFields (const GeneratorOptions &options, io::Printer *printer, const Descriptor *desc) const
 
void GenerateClassFieldToObject (const GeneratorOptions &options, io::Printer *printer, const FieldDescriptor *field) const
 
void GenerateClassFromObject (const GeneratorOptions &options, io::Printer *printer, const Descriptor *desc) const
 
void GenerateClassRegistration (const GeneratorOptions &options, io::Printer *printer, const Descriptor *desc) const
 
void GenerateClassSerializeBinary (const GeneratorOptions &options, io::Printer *printer, const Descriptor *desc) const
 
void GenerateClassSerializeBinaryField (const GeneratorOptions &options, io::Printer *printer, const FieldDescriptor *field) const
 
void GenerateClassToObject (const GeneratorOptions &options, io::Printer *printer, const Descriptor *desc) const
 
void GenerateClassXid (const GeneratorOptions &options, io::Printer *printer, const Descriptor *desc) const
 
void GenerateEnum (const GeneratorOptions &options, io::Printer *printer, const EnumDescriptor *enumdesc) const
 
void GenerateExtension (const GeneratorOptions &options, io::Printer *printer, const FieldDescriptor *field) const
 
void GenerateFieldValueExpression (io::Printer *printer, const char *obj_reference, const FieldDescriptor *field, bool use_default) const
 
bool GenerateFile (const FileDescriptor *file, const GeneratorOptions &options, GeneratorContext *context, bool use_short_name) const
 
void GenerateFile (const GeneratorOptions &options, io::Printer *printer, const FileDescriptor *file) const
 
void GenerateFileAndDeps (const GeneratorOptions &options, io::Printer *printer, const FileDescriptor *root, std::set< const FileDescriptor * > *all_files, std::set< const FileDescriptor * > *generated) const
 
void GenerateFilesInDepOrder (const GeneratorOptions &options, io::Printer *printer, const std::vector< const FileDescriptor * > &file) const
 
void GenerateHeader (const GeneratorOptions &options, const FileDescriptor *file, io::Printer *printer) const
 
void GenerateObjectTypedef (const GeneratorOptions &options, io::Printer *printer, const Descriptor *desc) const
 
void GenerateOneofCaseDefinition (const GeneratorOptions &options, io::Printer *printer, const OneofDescriptor *oneof) const
 
void GenerateProvides (const GeneratorOptions &options, io::Printer *printer, std::set< std::string > *provided) const
 
void GenerateRepeatedMessageHelperMethods (const GeneratorOptions &options, io::Printer *printer, const FieldDescriptor *field) const
 
void GenerateRepeatedPrimitiveHelperMethods (const GeneratorOptions &options, io::Printer *printer, const FieldDescriptor *field, bool untyped) const
 
void GenerateRequiresForExtensions (const GeneratorOptions &options, io::Printer *printer, const std::vector< const FieldDescriptor * > &fields, std::set< std::string > *provided) const
 
void GenerateRequiresForLibrary (const GeneratorOptions &options, io::Printer *printer, const std::vector< const FileDescriptor * > &files, std::set< std::string > *provided) const
 
void GenerateRequiresForSCC (const GeneratorOptions &options, io::Printer *printer, const SCC *scc, std::set< std::string > *provided) const
 
void GenerateRequiresImpl (const GeneratorOptions &options, io::Printer *printer, std::set< std::string > *required, std::set< std::string > *forwards, std::set< std::string > *provided, bool require_jspb, bool require_extension, bool require_map) const
 
void GenerateTestOnly (const GeneratorOptions &options, io::Printer *printer) const
 
 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS (Generator)
 

Detailed Description

Definition at line 140 of file js_generator.h.

Constructor & Destructor Documentation

◆ Generator()

google::protobuf::compiler::js::Generator::Generator ( )
inline

Definition at line 142 of file js_generator.h.

◆ ~Generator()

virtual google::protobuf::compiler::js::Generator::~Generator ( )
inlinevirtual

Definition at line 143 of file js_generator.h.

Member Function Documentation

◆ FindProvides()

void google::protobuf::compiler::js::Generator::FindProvides ( const GeneratorOptions options,
io::Printer printer,
const std::vector< const FileDescriptor * > &  file,
std::set< std::string > *  provided 
) const
private

Definition at line 1685 of file js_generator.cc.

◆ FindProvidesForEnum()

void google::protobuf::compiler::js::Generator::FindProvidesForEnum ( const GeneratorOptions options,
io::Printer printer,
const EnumDescriptor enumdesc,
std::set< std::string > *  provided 
) const
private

Definition at line 1738 of file js_generator.cc.

◆ FindProvidesForFields()

void google::protobuf::compiler::js::Generator::FindProvidesForFields ( const GeneratorOptions options,
io::Printer printer,
const std::vector< const FieldDescriptor * > &  fields,
std::set< std::string > *  provided 
) const
private

Definition at line 1746 of file js_generator.cc.

◆ FindProvidesForFile()

void google::protobuf::compiler::js::Generator::FindProvidesForFile ( const GeneratorOptions options,
io::Printer printer,
const FileDescriptor file,
std::set< std::string > *  provided 
) const
private

Definition at line 1673 of file js_generator.cc.

◆ FindProvidesForMessage()

void google::protobuf::compiler::js::Generator::FindProvidesForMessage ( const GeneratorOptions options,
io::Printer printer,
const Descriptor desc,
std::set< std::string > *  provided 
) const
private

Definition at line 1717 of file js_generator.cc.

◆ FindRequiresForExtension()

void google::protobuf::compiler::js::Generator::FindRequiresForExtension ( const GeneratorOptions options,
const FieldDescriptor field,
std::set< std::string > *  required,
std::set< std::string > *  forwards 
) const
private

Definition at line 1980 of file js_generator.cc.

◆ FindRequiresForField()

void google::protobuf::compiler::js::Generator::FindRequiresForField ( const GeneratorOptions options,
const FieldDescriptor field,
std::set< std::string > *  required,
std::set< std::string > *  forwards 
) const
private

Definition at line 1960 of file js_generator.cc.

◆ FindRequiresForMessage()

void google::protobuf::compiler::js::Generator::FindRequiresForMessage ( const GeneratorOptions options,
const Descriptor desc,
std::set< std::string > *  required,
std::set< std::string > *  forwards,
bool *  have_message 
) const
private

Definition at line 1929 of file js_generator.cc.

◆ Generate()

virtual bool google::protobuf::compiler::js::Generator::Generate ( const FileDescriptor file,
const std::string parameter,
GeneratorContext context,
std::string error 
) const
inlinevirtual

Implements google::protobuf::compiler::CodeGenerator.

Definition at line 145 of file js_generator.h.

◆ GenerateAll()

bool google::protobuf::compiler::js::Generator::GenerateAll ( const std::vector< const FileDescriptor * > &  files,
const std::string parameter,
GeneratorContext context,
std::string error 
) const
virtual

Reimplemented from google::protobuf::compiler::CodeGenerator.

Definition at line 3720 of file js_generator.cc.

◆ GenerateClass()

void google::protobuf::compiler::js::Generator::GenerateClass ( const GeneratorOptions options,
io::Printer printer,
const Descriptor desc 
) const
private

Definition at line 2012 of file js_generator.cc.

◆ GenerateClassConstructor()

void google::protobuf::compiler::js::Generator::GenerateClassConstructor ( const GeneratorOptions options,
io::Printer printer,
const Descriptor desc 
) const
private

Definition at line 2055 of file js_generator.cc.

◆ GenerateClassConstructorAndDeclareExtensionFieldInfo()

void google::protobuf::compiler::js::Generator::GenerateClassConstructorAndDeclareExtensionFieldInfo ( const GeneratorOptions options,
io::Printer printer,
const Descriptor desc 
) const
private

Definition at line 2102 of file js_generator.cc.

◆ GenerateClassDeserialize()

void google::protobuf::compiler::js::Generator::GenerateClassDeserialize ( const GeneratorOptions options,
io::Printer printer,
const Descriptor desc 
) const
private

◆ GenerateClassDeserializeBinary()

void google::protobuf::compiler::js::Generator::GenerateClassDeserializeBinary ( const GeneratorOptions options,
io::Printer printer,
const Descriptor desc 
) const
private

Definition at line 3069 of file js_generator.cc.

◆ GenerateClassDeserializeBinaryField()

void google::protobuf::compiler::js::Generator::GenerateClassDeserializeBinaryField ( const GeneratorOptions options,
io::Printer printer,
const FieldDescriptor field 
) const
private

Definition at line 3137 of file js_generator.cc.

◆ GenerateClassesAndEnums()

void google::protobuf::compiler::js::Generator::GenerateClassesAndEnums ( const GeneratorOptions options,
io::Printer printer,
const FileDescriptor file 
) const
private

Definition at line 1997 of file js_generator.cc.

◆ GenerateClassExtensionFieldInfo()

void google::protobuf::compiler::js::Generator::GenerateClassExtensionFieldInfo ( const GeneratorOptions options,
io::Printer printer,
const Descriptor desc 
) const
private

Definition at line 3020 of file js_generator.cc.

◆ GenerateClassField()

void google::protobuf::compiler::js::Generator::GenerateClassField ( const GeneratorOptions options,
io::Printer printer,
const FieldDescriptor desc 
) const
private

Definition at line 2589 of file js_generator.cc.

◆ GenerateClassFieldFromObject()

void google::protobuf::compiler::js::Generator::GenerateClassFieldFromObject ( const GeneratorOptions options,
io::Printer printer,
const FieldDescriptor field 
) const
private

Definition at line 2482 of file js_generator.cc.

◆ GenerateClassFieldInfo()

void google::protobuf::compiler::js::Generator::GenerateClassFieldInfo ( const GeneratorOptions options,
io::Printer printer,
const Descriptor desc 
) const
private

Definition at line 2119 of file js_generator.cc.

◆ GenerateClassFields()

void google::protobuf::compiler::js::Generator::GenerateClassFields ( const GeneratorOptions options,
io::Printer printer,
const Descriptor desc 
) const
private

Definition at line 2550 of file js_generator.cc.

◆ GenerateClassFieldToObject()

void google::protobuf::compiler::js::Generator::GenerateClassFieldToObject ( const GeneratorOptions options,
io::Printer printer,
const FieldDescriptor field 
) const
private

Definition at line 2348 of file js_generator.cc.

◆ GenerateClassFromObject()

void google::protobuf::compiler::js::Generator::GenerateClassFromObject ( const GeneratorOptions options,
io::Printer printer,
const Descriptor desc 
) const
private

Definition at line 2451 of file js_generator.cc.

◆ GenerateClassRegistration()

void google::protobuf::compiler::js::Generator::GenerateClassRegistration ( const GeneratorOptions options,
io::Printer printer,
const Descriptor desc 
) const
private

Definition at line 2537 of file js_generator.cc.

◆ GenerateClassSerializeBinary()

void google::protobuf::compiler::js::Generator::GenerateClassSerializeBinary ( const GeneratorOptions options,
io::Printer printer,
const Descriptor desc 
) const
private

Definition at line 3205 of file js_generator.cc.

◆ GenerateClassSerializeBinaryField()

void google::protobuf::compiler::js::Generator::GenerateClassSerializeBinaryField ( const GeneratorOptions options,
io::Printer printer,
const FieldDescriptor field 
) const
private

Definition at line 3252 of file js_generator.cc.

◆ GenerateClassToObject()

void google::protobuf::compiler::js::Generator::GenerateClassToObject ( const GeneratorOptions options,
io::Printer printer,
const Descriptor desc 
) const
private

Definition at line 2215 of file js_generator.cc.

◆ GenerateClassXid()

void google::protobuf::compiler::js::Generator::GenerateClassXid ( const GeneratorOptions options,
io::Printer printer,
const Descriptor desc 
) const
private

Definition at line 2164 of file js_generator.cc.

◆ GenerateEnum()

void google::protobuf::compiler::js::Generator::GenerateEnum ( const GeneratorOptions options,
io::Printer printer,
const EnumDescriptor enumdesc 
) const
private

Definition at line 3365 of file js_generator.cc.

◆ GenerateExtension()

void google::protobuf::compiler::js::Generator::GenerateExtension ( const GeneratorOptions options,
io::Printer printer,
const FieldDescriptor field 
) const
private

Definition at line 3391 of file js_generator.cc.

◆ GenerateFieldValueExpression()

void google::protobuf::compiler::js::Generator::GenerateFieldValueExpression ( io::Printer printer,
const char *  obj_reference,
const FieldDescriptor field,
bool  use_default 
) const
private

Definition at line 2300 of file js_generator.cc.

◆ GenerateFile() [1/2]

bool google::protobuf::compiler::js::Generator::GenerateFile ( const FileDescriptor file,
const GeneratorOptions options,
GeneratorContext context,
bool  use_short_name 
) const
private

Definition at line 3611 of file js_generator.cc.

◆ GenerateFile() [2/2]

void google::protobuf::compiler::js::Generator::GenerateFile ( const GeneratorOptions options,
io::Printer printer,
const FileDescriptor file 
) const
private

Definition at line 3641 of file js_generator.cc.

◆ GenerateFileAndDeps()

void google::protobuf::compiler::js::Generator::GenerateFileAndDeps ( const GeneratorOptions options,
io::Printer printer,
const FileDescriptor root,
std::set< const FileDescriptor * > *  all_files,
std::set< const FileDescriptor * > *  generated 
) const
private

Definition at line 3587 of file js_generator.cc.

◆ GenerateFilesInDepOrder()

void google::protobuf::compiler::js::Generator::GenerateFilesInDepOrder ( const GeneratorOptions options,
io::Printer printer,
const std::vector< const FileDescriptor * > &  file 
) const
private

Definition at line 3574 of file js_generator.cc.

◆ GenerateHeader()

void google::protobuf::compiler::js::Generator::GenerateHeader ( const GeneratorOptions options,
const FileDescriptor file,
io::Printer printer 
) const
private

Definition at line 1653 of file js_generator.cc.

◆ GenerateObjectTypedef()

void google::protobuf::compiler::js::Generator::GenerateObjectTypedef ( const GeneratorOptions options,
io::Printer printer,
const Descriptor desc 
) const
private

Definition at line 2420 of file js_generator.cc.

◆ GenerateOneofCaseDefinition()

void google::protobuf::compiler::js::Generator::GenerateOneofCaseDefinition ( const GeneratorOptions options,
io::Printer printer,
const OneofDescriptor oneof 
) const
private

Definition at line 2174 of file js_generator.cc.

◆ GenerateProvides()

void google::protobuf::compiler::js::Generator::GenerateProvides ( const GeneratorOptions options,
io::Printer printer,
std::set< std::string > *  provided 
) const
private

Definition at line 1763 of file js_generator.cc.

◆ GenerateRepeatedMessageHelperMethods()

void google::protobuf::compiler::js::Generator::GenerateRepeatedMessageHelperMethods ( const GeneratorOptions options,
io::Printer printer,
const FieldDescriptor field 
) const
private

Definition at line 2992 of file js_generator.cc.

◆ GenerateRepeatedPrimitiveHelperMethods()

void google::protobuf::compiler::js::Generator::GenerateRepeatedPrimitiveHelperMethods ( const GeneratorOptions options,
io::Printer printer,
const FieldDescriptor field,
bool  untyped 
) const
private

Definition at line 2953 of file js_generator.cc.

◆ GenerateRequiresForExtensions()

void google::protobuf::compiler::js::Generator::GenerateRequiresForExtensions ( const GeneratorOptions options,
io::Printer printer,
const std::vector< const FieldDescriptor * > &  fields,
std::set< std::string > *  provided 
) const
private

Definition at line 1867 of file js_generator.cc.

◆ GenerateRequiresForLibrary()

void google::protobuf::compiler::js::Generator::GenerateRequiresForLibrary ( const GeneratorOptions options,
io::Printer printer,
const std::vector< const FileDescriptor * > &  files,
std::set< std::string > *  provided 
) const
private

Definition at line 1818 of file js_generator.cc.

◆ GenerateRequiresForSCC()

void google::protobuf::compiler::js::Generator::GenerateRequiresForSCC ( const GeneratorOptions options,
io::Printer printer,
const SCC scc,
std::set< std::string > *  provided 
) const
private

Definition at line 1795 of file js_generator.cc.

◆ GenerateRequiresImpl()

void google::protobuf::compiler::js::Generator::GenerateRequiresImpl ( const GeneratorOptions options,
io::Printer printer,
std::set< std::string > *  required,
std::set< std::string > *  forwards,
std::set< std::string > *  provided,
bool  require_jspb,
bool  require_extension,
bool  require_map 
) const
private

Definition at line 1887 of file js_generator.cc.

◆ GenerateTestOnly()

void google::protobuf::compiler::js::Generator::GenerateTestOnly ( const GeneratorOptions options,
io::Printer printer 
) const
private

Definition at line 1989 of file js_generator.cc.

◆ GOOGLE_DISALLOW_EVIL_CONSTRUCTORS()

google::protobuf::compiler::js::Generator::GOOGLE_DISALLOW_EVIL_CONSTRUCTORS ( Generator  )
private

◆ HasGenerateAll()

virtual bool google::protobuf::compiler::js::Generator::HasGenerateAll ( ) const
inlinevirtual

Reimplemented from google::protobuf::compiler::CodeGenerator.

Definition at line 152 of file js_generator.h.


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


libaditof
Author(s):
autogenerated on Wed May 21 2025 02:07:09