webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Classes | Enumerations | Functions | Variables
google::protobuf::compiler::javanano Namespace Reference

Classes

class  AccessorEnumFieldGenerator
 
class  AccessorPrimitiveFieldGenerator
 
class  EnumFieldGenerator
 
class  EnumGenerator
 
class  ExtensionGenerator
 
class  FieldGenerator
 
class  FieldGeneratorMap
 
class  FileGenerator
 
class  JavaNanoGenerator
 
class  MapFieldGenerator
 
class  MessageFieldGenerator
 
class  MessageGenerator
 
class  MessageOneofFieldGenerator
 
class  Params
 
class  PrimitiveFieldGenerator
 
class  PrimitiveOneofFieldGenerator
 
class  RenameKeywords
 
class  RepeatedEnumFieldGenerator
 
class  RepeatedMessageFieldGenerator
 
class  RepeatedPrimitiveFieldGenerator
 

Enumerations

enum  JavaType {
  JAVATYPE_INT, JAVATYPE_LONG, JAVATYPE_FLOAT, JAVATYPE_DOUBLE,
  JAVATYPE_BOOLEAN, JAVATYPE_STRING, JAVATYPE_BYTES, JAVATYPE_ENUM,
  JAVATYPE_MESSAGE
}
 
enum  eMultipleFiles { JAVANANO_MUL_UNSET, JAVANANO_MUL_FALSE, JAVANANO_MUL_TRUE }
 

Functions

void SetVariables (const FieldDescriptor *descriptor, const Params params, map< string, string > *variables)
 
void SetCommonOneofVariables (const FieldDescriptor *descriptor, map< string, string > *variables)
 
void GenerateOneofFieldEquals (const FieldDescriptor *descriptor, const map< string, string > &variables, io::Printer *printer)
 
void GenerateOneofFieldHashCode (const FieldDescriptor *descriptor, const map< string, string > &variables, io::Printer *printer)
 
void UpdateParamsRecursively (Params &params, const FileDescriptor *file)
 
string UnderscoresToCamelCase (const FieldDescriptor *field)
 
string UnderscoresToCapitalizedCamelCase (const FieldDescriptor *field)
 
string UnderscoresToCamelCase (const MethodDescriptor *method)
 
string UnderscoresToCamelCase (const OneofDescriptor *oneof)
 
string UnderscoresToCapitalizedCamelCase (const OneofDescriptor *oneof)
 
string RenameJavaKeywords (const string &input)
 
string StripProto (const string &filename)
 
string FileClassName (const Params &params, const FileDescriptor *file)
 
string FileJavaPackage (const Params &params, const FileDescriptor *file)
 
bool IsOuterClassNeeded (const Params &params, const FileDescriptor *file)
 
string ToJavaName (const Params &params, const string &name, bool is_class, const Descriptor *parent, const FileDescriptor *file)
 
string ClassName (const Params &params, const FileDescriptor *descriptor)
 
string ClassName (const Params &params, const EnumDescriptor *descriptor)
 
string FieldConstantName (const FieldDescriptor *field)
 
string FieldDefaultConstantName (const FieldDescriptor *field)
 
void PrintFieldComment (io::Printer *printer, const FieldDescriptor *field)
 
JavaType GetJavaType (FieldDescriptor::Type field_type)
 
string PrimitiveTypeName (JavaType type)
 
string BoxedPrimitiveTypeName (JavaType type)
 
string EmptyArrayName (const Params &params, const FieldDescriptor *field)
 
string DefaultValue (const Params &params, const FieldDescriptor *field)
 
string GetBitFieldName (int index)
 
string GetBitFieldNameForBit (int bit_index)
 
string GenerateGetBit (int bit_index)
 
string GenerateSetBit (int bit_index)
 
string GenerateClearBit (int bit_index)
 
string GenerateDifferentBit (int bit_index)
 
void SetBitOperationVariables (const string name, int bitIndex, map< string, string > *variables)
 
bool HasMapField (const Descriptor *descriptor)
 
string ClassName (const Params &params, const Descriptor *descriptor)
 
string ClassName (const Params &params, const ServiceDescriptor *descriptor)
 
string ExtensionIdentifierName (const Params &params, const FieldDescriptor *descriptor)
 
JavaType GetJavaType (const FieldDescriptor *field)
 
bool IsMapEntry (const Descriptor *descriptor)
 

Variables

const char kThickSeparator []
 
const char kThinSeparator []
 

Enumeration Type Documentation

◆ eMultipleFiles

Enumerator
JAVANANO_MUL_UNSET 
JAVANANO_MUL_FALSE 
JAVANANO_MUL_TRUE 

◆ JavaType

Enumerator
JAVATYPE_INT 
JAVATYPE_LONG 
JAVATYPE_FLOAT 
JAVATYPE_DOUBLE 
JAVATYPE_BOOLEAN 
JAVATYPE_STRING 
JAVATYPE_BYTES 
JAVATYPE_ENUM 
JAVATYPE_MESSAGE 

Function Documentation

◆ BoxedPrimitiveTypeName()

string google::protobuf::compiler::javanano::BoxedPrimitiveTypeName ( JavaType  type)

◆ ClassName() [1/4]

string google::protobuf::compiler::javanano::ClassName ( const Params params,
const Descriptor descriptor 
)
inline

◆ ClassName() [2/4]

string google::protobuf::compiler::javanano::ClassName ( const Params params,
const ServiceDescriptor descriptor 
)
inline

◆ ClassName() [3/4]

string google::protobuf::compiler::javanano::ClassName ( const Params params,
const FileDescriptor descriptor 
)

◆ ClassName() [4/4]

string google::protobuf::compiler::javanano::ClassName ( const Params params,
const EnumDescriptor descriptor 
)

◆ DefaultValue()

string google::protobuf::compiler::javanano::DefaultValue ( const Params params,
const FieldDescriptor field 
)

◆ EmptyArrayName()

string google::protobuf::compiler::javanano::EmptyArrayName ( const Params params,
const FieldDescriptor field 
)

◆ ExtensionIdentifierName()

string google::protobuf::compiler::javanano::ExtensionIdentifierName ( const Params params,
const FieldDescriptor descriptor 
)
inline

◆ FieldConstantName()

string google::protobuf::compiler::javanano::FieldConstantName ( const FieldDescriptor field)

◆ FieldDefaultConstantName()

string google::protobuf::compiler::javanano::FieldDefaultConstantName ( const FieldDescriptor field)

◆ FileClassName()

string google::protobuf::compiler::javanano::FileClassName ( const Params params,
const FileDescriptor file 
)

◆ FileJavaPackage()

string google::protobuf::compiler::javanano::FileJavaPackage ( const Params params,
const FileDescriptor file 
)

◆ GenerateClearBit()

string google::protobuf::compiler::javanano::GenerateClearBit ( int  bit_index)

◆ GenerateDifferentBit()

string google::protobuf::compiler::javanano::GenerateDifferentBit ( int  bit_index)

◆ GenerateGetBit()

string google::protobuf::compiler::javanano::GenerateGetBit ( int  bit_index)

◆ GenerateOneofFieldEquals()

void google::protobuf::compiler::javanano::GenerateOneofFieldEquals ( const FieldDescriptor descriptor,
const map< string, string > &  variables,
io::Printer printer 
)

◆ GenerateOneofFieldHashCode()

void google::protobuf::compiler::javanano::GenerateOneofFieldHashCode ( const FieldDescriptor descriptor,
const map< string, string > &  variables,
io::Printer printer 
)

◆ GenerateSetBit()

string google::protobuf::compiler::javanano::GenerateSetBit ( int  bit_index)

◆ GetBitFieldName()

string google::protobuf::compiler::javanano::GetBitFieldName ( int  index)

◆ GetBitFieldNameForBit()

string google::protobuf::compiler::javanano::GetBitFieldNameForBit ( int  bit_index)

◆ GetJavaType() [1/2]

JavaType google::protobuf::compiler::javanano::GetJavaType ( const FieldDescriptor field)
inline

◆ GetJavaType() [2/2]

JavaType google::protobuf::compiler::javanano::GetJavaType ( FieldDescriptor::Type  field_type)

◆ HasMapField()

bool google::protobuf::compiler::javanano::HasMapField ( const Descriptor descriptor)

◆ IsMapEntry()

bool google::protobuf::compiler::javanano::IsMapEntry ( const Descriptor descriptor)
inline

◆ IsOuterClassNeeded()

bool google::protobuf::compiler::javanano::IsOuterClassNeeded ( const Params params,
const FileDescriptor file 
)

◆ PrimitiveTypeName()

string google::protobuf::compiler::javanano::PrimitiveTypeName ( JavaType  type)

◆ PrintFieldComment()

void google::protobuf::compiler::javanano::PrintFieldComment ( io::Printer printer,
const FieldDescriptor field 
)

◆ RenameJavaKeywords()

string google::protobuf::compiler::javanano::RenameJavaKeywords ( const string input)

◆ SetBitOperationVariables()

void google::protobuf::compiler::javanano::SetBitOperationVariables ( const string  name,
int  bitIndex,
map< string, string > *  variables 
)

◆ SetCommonOneofVariables()

void google::protobuf::compiler::javanano::SetCommonOneofVariables ( const FieldDescriptor descriptor,
map< string, string > *  variables 
)

◆ SetVariables()

void google::protobuf::compiler::javanano::SetVariables ( const FieldDescriptor descriptor,
const Params  params,
map< string, string > *  variables 
)

◆ StripProto()

string google::protobuf::compiler::javanano::StripProto ( const string filename)

◆ ToJavaName()

string google::protobuf::compiler::javanano::ToJavaName ( const Params params,
const string name,
bool  is_class,
const Descriptor parent,
const FileDescriptor file 
)

◆ UnderscoresToCamelCase() [1/3]

string google::protobuf::compiler::javanano::UnderscoresToCamelCase ( const FieldDescriptor field)

◆ UnderscoresToCamelCase() [2/3]

string google::protobuf::compiler::javanano::UnderscoresToCamelCase ( const MethodDescriptor method)

◆ UnderscoresToCamelCase() [3/3]

string google::protobuf::compiler::javanano::UnderscoresToCamelCase ( const OneofDescriptor oneof)

◆ UnderscoresToCapitalizedCamelCase() [1/2]

string google::protobuf::compiler::javanano::UnderscoresToCapitalizedCamelCase ( const FieldDescriptor field)

◆ UnderscoresToCapitalizedCamelCase() [2/2]

string google::protobuf::compiler::javanano::UnderscoresToCapitalizedCamelCase ( const OneofDescriptor oneof)

◆ UpdateParamsRecursively()

void google::protobuf::compiler::javanano::UpdateParamsRecursively ( Params params,
const FileDescriptor file 
)

Variable Documentation

◆ kThickSeparator

const char google::protobuf::compiler::javanano::kThickSeparator
Initial value:
=
"// ===================================================================\n"

◆ kThinSeparator

const char google::protobuf::compiler::javanano::kThinSeparator
Initial value:
=
"// -------------------------------------------------------------------\n"