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

Classes

class  ClassNameResolver
 
class  Context
 
class  EnumGenerator
 
class  EnumLiteGenerator
 
class  ExtensionGenerator
 
struct  ExtensionRangeOrdering
 
struct  FieldGeneratorInfo
 
class  FieldGeneratorMap
 
struct  FieldOrderingByNumber
 
class  FileGenerator
 
class  GeneratorFactory
 
class  ImmutableEnumFieldGenerator
 
class  ImmutableEnumFieldLiteGenerator
 
class  ImmutableEnumOneofFieldGenerator
 
class  ImmutableEnumOneofFieldLiteGenerator
 
class  ImmutableExtensionGenerator
 
class  ImmutableExtensionLiteGenerator
 
class  ImmutableFieldGenerator
 
class  ImmutableFieldLiteGenerator
 
class  ImmutableGeneratorFactory
 
class  ImmutableLazyMessageFieldGenerator
 
class  ImmutableLazyMessageFieldLiteGenerator
 
class  ImmutableLazyMessageOneofFieldGenerator
 
class  ImmutableLazyMessageOneofFieldLiteGenerator
 
class  ImmutableMapFieldGenerator
 
class  ImmutableMapFieldLiteGenerator
 
class  ImmutableMessageFieldGenerator
 
class  ImmutableMessageFieldLiteGenerator
 
class  ImmutableMessageGenerator
 
class  ImmutableMessageLiteGenerator
 
class  ImmutableMessageOneofFieldGenerator
 
class  ImmutableMessageOneofFieldLiteGenerator
 
class  ImmutablePrimitiveFieldGenerator
 
class  ImmutablePrimitiveFieldLiteGenerator
 
class  ImmutablePrimitiveOneofFieldGenerator
 
class  ImmutablePrimitiveOneofFieldLiteGenerator
 
class  ImmutableServiceGenerator
 
class  ImmutableStringFieldGenerator
 
class  ImmutableStringFieldLiteGenerator
 
class  ImmutableStringOneofFieldGenerator
 
class  ImmutableStringOneofFieldLiteGenerator
 
class  JavaGenerator
 
class  MessageBuilderGenerator
 
class  MessageBuilderLiteGenerator
 
class  MessageGenerator
 
struct  OneofGeneratorInfo
 
class  RepeatedImmutableEnumFieldGenerator
 
class  RepeatedImmutableEnumFieldLiteGenerator
 
class  RepeatedImmutableLazyMessageFieldGenerator
 
class  RepeatedImmutableLazyMessageFieldLiteGenerator
 
class  RepeatedImmutableMessageFieldGenerator
 
class  RepeatedImmutableMessageFieldLiteGenerator
 
class  RepeatedImmutablePrimitiveFieldGenerator
 
class  RepeatedImmutablePrimitiveFieldLiteGenerator
 
class  RepeatedImmutableStringFieldGenerator
 
class  RepeatedImmutableStringFieldLiteGenerator
 
class  ServiceGenerator
 
class  SharedCodeGenerator
 

Enumerations

enum  JavaType {
  JAVATYPE_INT, JAVATYPE_LONG, JAVATYPE_FLOAT, JAVATYPE_DOUBLE,
  JAVATYPE_BOOLEAN, JAVATYPE_STRING, JAVATYPE_BYTES, JAVATYPE_ENUM,
  JAVATYPE_MESSAGE
}
 

Functions

string EscapeJavadoc (const string &input)
 
void WriteMessageDocComment (io::Printer *printer, const Descriptor *message)
 
void WriteFieldDocComment (io::Printer *printer, const FieldDescriptor *field)
 
void WriteEnumDocComment (io::Printer *printer, const EnumDescriptor *enum_)
 
void WriteEnumValueDocComment (io::Printer *printer, const EnumValueDescriptor *value)
 
void WriteServiceDocComment (io::Printer *printer, const ServiceDescriptor *service)
 
void WriteMethodDocComment (io::Printer *printer, const MethodDescriptor *method)
 
void SetCommonFieldVariables (const FieldDescriptor *descriptor, const FieldGeneratorInfo *info, map< string, string > *variables)
 
void SetCommonOneofVariables (const FieldDescriptor *descriptor, const OneofGeneratorInfo *info, map< string, string > *variables)
 
void PrintExtraFieldInfo (const map< string, string > &variables, io::Printer *printer)
 
string UnderscoresToCamelCase (const string &input, bool cap_next_letter)
 
string UnderscoresToCamelCase (const FieldDescriptor *field)
 
string UnderscoresToCapitalizedCamelCase (const FieldDescriptor *field)
 
string UnderscoresToCamelCase (const MethodDescriptor *method)
 
string UniqueFileScopeIdentifier (const Descriptor *descriptor)
 
string StripProto (const string &filename)
 
string FileClassName (const FileDescriptor *file, bool immutable)
 
string FileJavaPackage (const FileDescriptor *file, bool immutable)
 
string JavaPackageToDir (string package_name)
 
string ToJavaName (const string &full_name, const FileDescriptor *file)
 
string ClassName (const Descriptor *descriptor)
 
string ClassName (const EnumDescriptor *descriptor)
 
string ClassName (const ServiceDescriptor *descriptor)
 
string ClassName (const FileDescriptor *descriptor)
 
string ExtraMessageInterfaces (const Descriptor *descriptor)
 
string ExtraBuilderInterfaces (const Descriptor *descriptor)
 
string ExtraMessageOrBuilderInterfaces (const Descriptor *descriptor)
 
string FieldConstantName (const FieldDescriptor *field)
 
FieldDescriptor::Type GetType (const FieldDescriptor *field)
 
JavaType GetJavaType (const FieldDescriptor *field)
 
const char * PrimitiveTypeName (JavaType type)
 
const char * BoxedPrimitiveTypeName (JavaType type)
 
const char * FieldTypeName (FieldDescriptor::Type field_type)
 
bool AllAscii (const string &text)
 
string DefaultValue (const FieldDescriptor *field, bool immutable, ClassNameResolver *name_resolver)
 
bool IsDefaultValueJavaDefault (const FieldDescriptor *field)
 
string GetBitFieldName (int index)
 
string GetBitFieldNameForBit (int bitIndex)
 
string GenerateGetBit (int bitIndex)
 
string GenerateSetBit (int bitIndex)
 
string GenerateClearBit (int bitIndex)
 
string GenerateGetBitFromLocal (int bitIndex)
 
string GenerateSetBitToLocal (int bitIndex)
 
string GenerateGetBitMutableLocal (int bitIndex)
 
string GenerateSetBitMutableLocal (int bitIndex)
 
bool IsReferenceType (JavaType type)
 
const char * GetCapitalizedType (const FieldDescriptor *field, bool immutable)
 
int FixedSize (FieldDescriptor::Type type)
 
const FieldDescriptor ** SortFieldsByNumber (const Descriptor *descriptor)
 
bool HasRequiredFields (const Descriptor *type, hash_set< const Descriptor *> *already_seen)
 
bool HasRequiredFields (const Descriptor *type)
 
bool HasRepeatedFields (const Descriptor *descriptor)
 
string ExtraMutableMessageInterfaces (const Descriptor *descriptor)
 
string ShortMutableJavaClassName (const Descriptor *descriptor)
 
bool MultipleJavaFiles (const FileDescriptor *descriptor, bool immutable)
 
string ImmutableDefaultValue (const FieldDescriptor *field, ClassNameResolver *name_resolver)
 
bool HasEqualsAndHashCode (const Descriptor *descriptor)
 
bool HasDescriptorMethods (const Descriptor *descriptor, bool enforce_lite)
 
bool HasDescriptorMethods (const EnumDescriptor *descriptor, bool enforce_lite)
 
bool HasDescriptorMethods (const FileDescriptor *descriptor, bool enforce_lite)
 
bool HasGenericServices (const FileDescriptor *file, bool enforce_lite)
 
bool IsLazy (const FieldDescriptor *descriptor, bool enforce_lite)
 
bool HasPackedFields (const Descriptor *descriptor)
 
bool SupportFieldPresence (const FileDescriptor *descriptor)
 
bool ExposePublicParser (const FileDescriptor *descriptor)
 
bool SupportUnknownEnumValue (const FileDescriptor *descriptor)
 
bool IsMapEntry (const Descriptor *descriptor)
 
bool IsMapField (const FieldDescriptor *descriptor)
 
bool PreserveUnknownFields (const Descriptor *descriptor)
 
bool IsAnyMessage (const Descriptor *descriptor)
 
bool CheckUtf8 (const FieldDescriptor *descriptor)
 

Variables

const char kThickSeparator []
 
const char kThinSeparator []
 
const char * bit_masks []
 

Enumeration Type Documentation

◆ JavaType

Enumerator
JAVATYPE_INT 
JAVATYPE_LONG 
JAVATYPE_FLOAT 
JAVATYPE_DOUBLE 
JAVATYPE_BOOLEAN 
JAVATYPE_STRING 
JAVATYPE_BYTES 
JAVATYPE_ENUM 
JAVATYPE_MESSAGE 

Function Documentation

◆ AllAscii()

bool google::protobuf::compiler::java::AllAscii ( const string text)

◆ BoxedPrimitiveTypeName()

const char * google::protobuf::compiler::java::BoxedPrimitiveTypeName ( JavaType  type)

◆ CheckUtf8()

bool google::protobuf::compiler::java::CheckUtf8 ( const FieldDescriptor descriptor)
inline

◆ ClassName() [1/4]

string google::protobuf::compiler::java::ClassName ( const Descriptor descriptor)

◆ ClassName() [2/4]

string google::protobuf::compiler::java::ClassName ( const EnumDescriptor descriptor)

◆ ClassName() [3/4]

string google::protobuf::compiler::java::ClassName ( const ServiceDescriptor descriptor)

◆ ClassName() [4/4]

string google::protobuf::compiler::java::ClassName ( const FileDescriptor descriptor)

◆ DefaultValue()

string google::protobuf::compiler::java::DefaultValue ( const FieldDescriptor field,
bool  immutable,
ClassNameResolver name_resolver 
)

◆ EscapeJavadoc()

LIBPROTOC_EXPORT string google::protobuf::compiler::java::EscapeJavadoc ( const string input)

◆ ExposePublicParser()

bool google::protobuf::compiler::java::ExposePublicParser ( const FileDescriptor descriptor)
inline

◆ ExtraBuilderInterfaces()

string google::protobuf::compiler::java::ExtraBuilderInterfaces ( const Descriptor descriptor)

◆ ExtraMessageInterfaces()

string google::protobuf::compiler::java::ExtraMessageInterfaces ( const Descriptor descriptor)

◆ ExtraMessageOrBuilderInterfaces()

string google::protobuf::compiler::java::ExtraMessageOrBuilderInterfaces ( const Descriptor descriptor)

◆ ExtraMutableMessageInterfaces()

string google::protobuf::compiler::java::ExtraMutableMessageInterfaces ( const Descriptor descriptor)

◆ FieldConstantName()

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

◆ FieldTypeName()

const char * google::protobuf::compiler::java::FieldTypeName ( FieldDescriptor::Type  field_type)

◆ FileClassName()

string google::protobuf::compiler::java::FileClassName ( const FileDescriptor file,
bool  immutable 
)

◆ FileJavaPackage()

string google::protobuf::compiler::java::FileJavaPackage ( const FileDescriptor file,
bool  immutable 
)

◆ FixedSize()

int google::protobuf::compiler::java::FixedSize ( FieldDescriptor::Type  type)

◆ GenerateClearBit()

string google::protobuf::compiler::java::GenerateClearBit ( int  bitIndex)

◆ GenerateGetBit()

string google::protobuf::compiler::java::GenerateGetBit ( int  bitIndex)

◆ GenerateGetBitFromLocal()

string google::protobuf::compiler::java::GenerateGetBitFromLocal ( int  bitIndex)

◆ GenerateGetBitMutableLocal()

string google::protobuf::compiler::java::GenerateGetBitMutableLocal ( int  bitIndex)

◆ GenerateSetBit()

string google::protobuf::compiler::java::GenerateSetBit ( int  bitIndex)

◆ GenerateSetBitMutableLocal()

string google::protobuf::compiler::java::GenerateSetBitMutableLocal ( int  bitIndex)

◆ GenerateSetBitToLocal()

string google::protobuf::compiler::java::GenerateSetBitToLocal ( int  bitIndex)

◆ GetBitFieldName()

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

◆ GetBitFieldNameForBit()

string google::protobuf::compiler::java::GetBitFieldNameForBit ( int  bitIndex)

◆ GetCapitalizedType()

const char * google::protobuf::compiler::java::GetCapitalizedType ( const FieldDescriptor field,
bool  immutable 
)

◆ GetJavaType()

JavaType google::protobuf::compiler::java::GetJavaType ( const FieldDescriptor field)

◆ GetType()

FieldDescriptor::Type google::protobuf::compiler::java::GetType ( const FieldDescriptor field)

◆ HasDescriptorMethods() [1/3]

bool google::protobuf::compiler::java::HasDescriptorMethods ( const Descriptor descriptor,
bool  enforce_lite 
)
inline

◆ HasDescriptorMethods() [2/3]

bool google::protobuf::compiler::java::HasDescriptorMethods ( const EnumDescriptor descriptor,
bool  enforce_lite 
)
inline

◆ HasDescriptorMethods() [3/3]

bool google::protobuf::compiler::java::HasDescriptorMethods ( const FileDescriptor descriptor,
bool  enforce_lite 
)
inline

◆ HasEqualsAndHashCode()

bool google::protobuf::compiler::java::HasEqualsAndHashCode ( const Descriptor descriptor)
inline

◆ HasGenericServices()

bool google::protobuf::compiler::java::HasGenericServices ( const FileDescriptor file,
bool  enforce_lite 
)
inline

◆ HasPackedFields()

bool google::protobuf::compiler::java::HasPackedFields ( const Descriptor descriptor)
inline

◆ HasRepeatedFields()

bool google::protobuf::compiler::java::HasRepeatedFields ( const Descriptor descriptor)

◆ HasRequiredFields() [1/2]

bool google::protobuf::compiler::java::HasRequiredFields ( const Descriptor type,
hash_set< const Descriptor *> *  already_seen 
)

◆ HasRequiredFields() [2/2]

bool google::protobuf::compiler::java::HasRequiredFields ( const Descriptor type)

◆ ImmutableDefaultValue()

string google::protobuf::compiler::java::ImmutableDefaultValue ( const FieldDescriptor field,
ClassNameResolver name_resolver 
)
inline

◆ IsAnyMessage()

bool google::protobuf::compiler::java::IsAnyMessage ( const Descriptor descriptor)
inline

◆ IsDefaultValueJavaDefault()

bool google::protobuf::compiler::java::IsDefaultValueJavaDefault ( const FieldDescriptor field)

◆ IsLazy()

bool google::protobuf::compiler::java::IsLazy ( const FieldDescriptor descriptor,
bool  enforce_lite 
)
inline

◆ IsMapEntry()

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

◆ IsMapField()

bool google::protobuf::compiler::java::IsMapField ( const FieldDescriptor descriptor)
inline

◆ IsReferenceType()

bool google::protobuf::compiler::java::IsReferenceType ( JavaType  type)

◆ JavaPackageToDir()

string google::protobuf::compiler::java::JavaPackageToDir ( string  package_name)

◆ MultipleJavaFiles()

bool google::protobuf::compiler::java::MultipleJavaFiles ( const FileDescriptor descriptor,
bool  immutable 
)
inline

◆ PreserveUnknownFields()

bool google::protobuf::compiler::java::PreserveUnknownFields ( const Descriptor descriptor)
inline

◆ PrimitiveTypeName()

const char * google::protobuf::compiler::java::PrimitiveTypeName ( JavaType  type)

◆ PrintExtraFieldInfo()

void google::protobuf::compiler::java::PrintExtraFieldInfo ( const map< string, string > &  variables,
io::Printer printer 
)

◆ SetCommonFieldVariables()

void google::protobuf::compiler::java::SetCommonFieldVariables ( const FieldDescriptor descriptor,
const FieldGeneratorInfo info,
map< string, string > *  variables 
)

◆ SetCommonOneofVariables()

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

◆ ShortMutableJavaClassName()

string google::protobuf::compiler::java::ShortMutableJavaClassName ( const Descriptor descriptor)
inline

◆ SortFieldsByNumber()

const FieldDescriptor ** google::protobuf::compiler::java::SortFieldsByNumber ( const Descriptor descriptor)

◆ StripProto()

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

◆ SupportFieldPresence()

bool google::protobuf::compiler::java::SupportFieldPresence ( const FileDescriptor descriptor)
inline

◆ SupportUnknownEnumValue()

bool google::protobuf::compiler::java::SupportUnknownEnumValue ( const FileDescriptor descriptor)
inline

◆ ToJavaName()

string google::protobuf::compiler::java::ToJavaName ( const string full_name,
const FileDescriptor file 
)

◆ UnderscoresToCamelCase() [1/3]

string google::protobuf::compiler::java::UnderscoresToCamelCase ( const string input,
bool  cap_next_letter 
)

◆ UnderscoresToCamelCase() [2/3]

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

◆ UnderscoresToCamelCase() [3/3]

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

◆ UnderscoresToCapitalizedCamelCase()

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

◆ UniqueFileScopeIdentifier()

string google::protobuf::compiler::java::UniqueFileScopeIdentifier ( const Descriptor descriptor)

◆ WriteEnumDocComment()

void google::protobuf::compiler::java::WriteEnumDocComment ( io::Printer printer,
const EnumDescriptor enum_ 
)

◆ WriteEnumValueDocComment()

void google::protobuf::compiler::java::WriteEnumValueDocComment ( io::Printer printer,
const EnumValueDescriptor value 
)

◆ WriteFieldDocComment()

void google::protobuf::compiler::java::WriteFieldDocComment ( io::Printer printer,
const FieldDescriptor field 
)

◆ WriteMessageDocComment()

void google::protobuf::compiler::java::WriteMessageDocComment ( io::Printer printer,
const Descriptor message 
)

◆ WriteMethodDocComment()

void google::protobuf::compiler::java::WriteMethodDocComment ( io::Printer printer,
const MethodDescriptor method 
)

◆ WriteServiceDocComment()

void google::protobuf::compiler::java::WriteServiceDocComment ( io::Printer printer,
const ServiceDescriptor service 
)

Variable Documentation

◆ bit_masks

const char* google::protobuf::compiler::java::bit_masks[]

◆ kThickSeparator

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

◆ kThinSeparator

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