webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
google::protobuf::compiler::csharp::FieldGeneratorBase Class Referenceabstract

#include <csharp_field_base.h>

Inheritance diagram for google::protobuf::compiler::csharp::FieldGeneratorBase:
google::protobuf::compiler::csharp::SourceGeneratorBase google::protobuf::compiler::csharp::MapFieldGenerator google::protobuf::compiler::csharp::MessageFieldGenerator google::protobuf::compiler::csharp::PrimitiveFieldGenerator google::protobuf::compiler::csharp::RepeatedEnumFieldGenerator google::protobuf::compiler::csharp::RepeatedMessageFieldGenerator google::protobuf::compiler::csharp::RepeatedPrimitiveFieldGenerator google::protobuf::compiler::csharp::WrapperFieldGenerator google::protobuf::compiler::csharp::MessageOneofFieldGenerator google::protobuf::compiler::csharp::EnumFieldGenerator google::protobuf::compiler::csharp::PrimitiveOneofFieldGenerator google::protobuf::compiler::csharp::WrapperOneofFieldGenerator google::protobuf::compiler::csharp::EnumOneofFieldGenerator

Public Member Functions

 FieldGeneratorBase (const FieldDescriptor *descriptor, int fieldOrdinal, const Options *options)
 
 ~FieldGeneratorBase ()
 
virtual void GenerateCloningCode (io::Printer *printer)=0
 
virtual void GenerateFreezingCode (io::Printer *printer)
 
virtual void GenerateCodecCode (io::Printer *printer)
 
virtual void GenerateMembers (io::Printer *printer)=0
 
virtual void GenerateMergingCode (io::Printer *printer)=0
 
virtual void GenerateParsingCode (io::Printer *printer)=0
 
virtual void GenerateSerializationCode (io::Printer *printer)=0
 
virtual void GenerateSerializedSizeCode (io::Printer *printer)=0
 
virtual void WriteHash (io::Printer *printer)=0
 
virtual void WriteEquals (io::Printer *printer)=0
 
virtual void WriteToString (io::Printer *printer)=0
 

Protected Member Functions

void AddDeprecatedFlag (io::Printer *printer)
 
void AddNullCheck (io::Printer *printer)
 
void AddNullCheck (io::Printer *printer, const std::string &name)
 
void AddPublicMemberAttributes (io::Printer *printer)
 
void SetCommonOneofFieldVariables (map< string, string > *variables)
 
std::string oneof_property_name ()
 
std::string oneof_name ()
 
std::string property_name ()
 
std::string name ()
 
std::string type_name ()
 
std::string type_name (const FieldDescriptor *descriptor)
 
bool has_default_value ()
 
bool is_nullable_type ()
 
std::string default_value ()
 
std::string default_value (const FieldDescriptor *descriptor)
 
std::string number ()
 
std::string capitalized_type_name ()
 
- Protected Member Functions inherited from google::protobuf::compiler::csharp::SourceGeneratorBase
 SourceGeneratorBase (const FileDescriptor *descriptor, const Options *options)
 
virtual ~SourceGeneratorBase ()
 
std::string class_access_level ()
 
const Optionsoptions ()
 
void WriteGeneratedCodeAttributes (io::Printer *printer)
 

Protected Attributes

const FieldDescriptordescriptor_
 
const int fieldOrdinal_
 
map< string, stringvariables_
 

Constructor & Destructor Documentation

◆ FieldGeneratorBase()

google::protobuf::compiler::csharp::FieldGeneratorBase::FieldGeneratorBase ( const FieldDescriptor descriptor,
int  fieldOrdinal,
const Options options 
)

◆ ~FieldGeneratorBase()

google::protobuf::compiler::csharp::FieldGeneratorBase::~FieldGeneratorBase ( )

Member Function Documentation

◆ AddDeprecatedFlag()

void google::protobuf::compiler::csharp::FieldGeneratorBase::AddDeprecatedFlag ( io::Printer printer)
protected

◆ AddNullCheck() [1/2]

void google::protobuf::compiler::csharp::FieldGeneratorBase::AddNullCheck ( io::Printer printer)
protected

◆ AddNullCheck() [2/2]

void google::protobuf::compiler::csharp::FieldGeneratorBase::AddNullCheck ( io::Printer printer,
const std::string name 
)
protected

◆ AddPublicMemberAttributes()

void google::protobuf::compiler::csharp::FieldGeneratorBase::AddPublicMemberAttributes ( io::Printer printer)
protected

◆ capitalized_type_name()

std::string google::protobuf::compiler::csharp::FieldGeneratorBase::capitalized_type_name ( )
protected

◆ default_value() [1/2]

std::string google::protobuf::compiler::csharp::FieldGeneratorBase::default_value ( )
protected

◆ default_value() [2/2]

std::string google::protobuf::compiler::csharp::FieldGeneratorBase::default_value ( const FieldDescriptor descriptor)
protected

◆ GenerateCloningCode()

virtual void google::protobuf::compiler::csharp::FieldGeneratorBase::GenerateCloningCode ( io::Printer printer)
pure virtual

◆ GenerateCodecCode()

void google::protobuf::compiler::csharp::FieldGeneratorBase::GenerateCodecCode ( io::Printer printer)
virtual

◆ GenerateFreezingCode()

void google::protobuf::compiler::csharp::FieldGeneratorBase::GenerateFreezingCode ( io::Printer printer)
virtual

◆ GenerateMembers()

virtual void google::protobuf::compiler::csharp::FieldGeneratorBase::GenerateMembers ( io::Printer printer)
pure virtual

◆ GenerateMergingCode()

virtual void google::protobuf::compiler::csharp::FieldGeneratorBase::GenerateMergingCode ( io::Printer printer)
pure virtual

◆ GenerateParsingCode()

virtual void google::protobuf::compiler::csharp::FieldGeneratorBase::GenerateParsingCode ( io::Printer printer)
pure virtual

◆ GenerateSerializationCode()

virtual void google::protobuf::compiler::csharp::FieldGeneratorBase::GenerateSerializationCode ( io::Printer printer)
pure virtual

◆ GenerateSerializedSizeCode()

virtual void google::protobuf::compiler::csharp::FieldGeneratorBase::GenerateSerializedSizeCode ( io::Printer printer)
pure virtual

◆ has_default_value()

bool google::protobuf::compiler::csharp::FieldGeneratorBase::has_default_value ( )
protected

◆ is_nullable_type()

bool google::protobuf::compiler::csharp::FieldGeneratorBase::is_nullable_type ( )
protected

◆ name()

std::string google::protobuf::compiler::csharp::FieldGeneratorBase::name ( )
protected

◆ number()

std::string google::protobuf::compiler::csharp::FieldGeneratorBase::number ( )
protected

◆ oneof_name()

std::string google::protobuf::compiler::csharp::FieldGeneratorBase::oneof_name ( )
protected

◆ oneof_property_name()

std::string google::protobuf::compiler::csharp::FieldGeneratorBase::oneof_property_name ( )
protected

◆ property_name()

std::string google::protobuf::compiler::csharp::FieldGeneratorBase::property_name ( )
protected

◆ SetCommonOneofFieldVariables()

void google::protobuf::compiler::csharp::FieldGeneratorBase::SetCommonOneofFieldVariables ( map< string, string > *  variables)
protected

◆ type_name() [1/2]

std::string google::protobuf::compiler::csharp::FieldGeneratorBase::type_name ( )
protected

◆ type_name() [2/2]

std::string google::protobuf::compiler::csharp::FieldGeneratorBase::type_name ( const FieldDescriptor descriptor)
protected

◆ WriteEquals()

virtual void google::protobuf::compiler::csharp::FieldGeneratorBase::WriteEquals ( io::Printer printer)
pure virtual

◆ WriteHash()

virtual void google::protobuf::compiler::csharp::FieldGeneratorBase::WriteHash ( io::Printer printer)
pure virtual

◆ WriteToString()

virtual void google::protobuf::compiler::csharp::FieldGeneratorBase::WriteToString ( io::Printer printer)
pure virtual

Member Data Documentation

◆ descriptor_

const FieldDescriptor* google::protobuf::compiler::csharp::FieldGeneratorBase::descriptor_
protected

◆ fieldOrdinal_

const int google::protobuf::compiler::csharp::FieldGeneratorBase::fieldOrdinal_
protected

◆ variables_

map<string, string> google::protobuf::compiler::csharp::FieldGeneratorBase::variables_
protected

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