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  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
 
struct  Options
 
class  RepeatedImmutableEnumFieldGenerator
 
class  RepeatedImmutableEnumFieldLiteGenerator
 
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
}
 
enum  NameEquality { NO_MATCH, EXACT_EQUAL, EQUAL_IGNORE_CASE }
 

Functions

bool AllAscii (const std::string &text)
 
template<typename Descriptor >
std::string AnnotationFileName (const Descriptor *descriptor, const std::string &suffix)
 
const char * BoxedPrimitiveTypeName (const FieldDescriptor *descriptor)
 
const char * BoxedPrimitiveTypeName (JavaType type)
 
std::string CamelCaseFieldName (const FieldDescriptor *field)
 
std::string CapitalizedFieldName (const FieldDescriptor *field)
 
bool CheckUtf8 (const FieldDescriptor *descriptor)
 
std::string ClassName (const Descriptor *descriptor)
 
std::string ClassName (const EnumDescriptor *descriptor)
 
std::string ClassName (const FileDescriptor *descriptor)
 
std::string ClassName (const ServiceDescriptor *descriptor)
 
std::string DefaultValue (const FieldDescriptor *field, bool immutable, ClassNameResolver *name_resolver)
 
std::string EscapeJavadoc (const std::string &input)
 
void EscapeUtf16ToString (uint16 code, std::string *output)
 
bool ExposePublicParser (const FileDescriptor *descriptor)
 
std::string ExtraBuilderInterfaces (const Descriptor *descriptor)
 
std::string ExtraMessageInterfaces (const Descriptor *descriptor)
 
std::string ExtraMessageOrBuilderInterfaces (const Descriptor *descriptor)
 
std::string ExtraMutableMessageInterfaces (const Descriptor *descriptor)
 
std::string FieldConstantName (const FieldDescriptor *field)
 
const char * FieldTypeName (FieldDescriptor::Type field_type)
 
std::string FileClassName (const FileDescriptor *file, bool immutable)
 
std::string FileJavaPackage (const FileDescriptor *file)
 
std::string FileJavaPackage (const FileDescriptor *file, bool immutable)
 
static std::string FirstLineOf (const std::string &value)
 
int FixedSize (FieldDescriptor::Type type)
 
std::string GenerateClearBit (int bitIndex)
 
std::string GeneratedCodeVersionSuffix ()
 
std::string GenerateGetBit (int bitIndex)
 
std::string GenerateGetBitFromLocal (int bitIndex)
 
std::string GenerateGetBitMutableLocal (int bitIndex)
 
std::string GenerateSetBit (int bitIndex)
 
std::string GenerateSetBitMutableLocal (int bitIndex)
 
std::string GenerateSetBitToLocal (int bitIndex)
 
template<typename GeneratorClass , typename DescriptorClass >
static void GenerateSibling (const std::string &package_dir, const std::string &java_package, const DescriptorClass *descriptor, GeneratorContext *context, std::vector< std::string > *file_list, bool annotate_code, std::vector< std::string > *annotation_list, const std::string &name_suffix, GeneratorClass *generator, void(GeneratorClass::*pfn)(io::Printer *printer))
 
std::string GetBitFieldName (int index)
 
std::string GetBitFieldNameForBit (int bitIndex)
 
const char * GetCapitalizedType (const FieldDescriptor *field, bool immutable)
 
int GetExperimentalJavaFieldType (const FieldDescriptor *field)
 
int GetExperimentalJavaFieldTypeForPacked (const FieldDescriptor *field)
 
int GetExperimentalJavaFieldTypeForRepeated (const FieldDescriptor *field)
 
int GetExperimentalJavaFieldTypeForSingular (const FieldDescriptor *field)
 
JavaType GetJavaType (const FieldDescriptor *field)
 
std::string GetOneofStoredType (const FieldDescriptor *field)
 
std::pair< int, int > GetTableDrivenNumberOfEntriesAndLookUpStartFieldNumber (const FieldDescriptor **fields, int count)
 
FieldDescriptor::Type GetType (const FieldDescriptor *field)
 
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 HasPackedFields (const Descriptor *descriptor)
 
bool HasRepeatedFields (const Descriptor *descriptor)
 
bool HasRequiredFields (const Descriptor *type)
 
bool HasRequiredFields (const Descriptor *type, std::unordered_set< const Descriptor * > *already_seen)
 
std::string ImmutableDefaultValue (const FieldDescriptor *field, ClassNameResolver *name_resolver)
 
bool IsAnyMessage (const Descriptor *descriptor)
 
bool IsByteStringWithCustomDefaultValue (const FieldDescriptor *field)
 
bool IsDefaultValueJavaDefault (const FieldDescriptor *field)
 
bool IsDescriptorProto (const Descriptor *descriptor)
 
bool IsMapEntry (const Descriptor *descriptor)
 
bool IsMapField (const FieldDescriptor *descriptor)
 
template<typename Descriptor >
bool IsOwnFile (const Descriptor *descriptor, bool immutable)
 
template<>
bool IsOwnFile (const ServiceDescriptor *descriptor, bool immutable)
 
bool IsReferenceType (JavaType type)
 
bool IsWrappersProtoFile (const FileDescriptor *descriptor)
 
std::string JavaPackageToDir (std::string package_name)
 
template<typename Descriptor >
void MaybePrintGeneratedAnnotation (Context *context, io::Printer *printer, Descriptor *descriptor, bool immutable, const std::string &suffix="")
 
bool MultipleJavaFiles (const FileDescriptor *descriptor, bool immutable)
 
const char * PrimitiveTypeName (const FieldDescriptor *descriptor)
 
const char * PrimitiveTypeName (JavaType type)
 
void PrintEnumVerifierLogic (io::Printer *printer, const FieldDescriptor *descriptor, const std::map< std::string, std::string > &variables, const char *var_name, const char *terminating_string, bool enforce_lite)
 
void PrintExtraFieldInfo (const std::map< std::string, std::string > &variables, io::Printer *printer)
 
void PrintGeneratedAnnotation (io::Printer *printer, char delimiter, const std::string &annotation_file)
 
void SetCommonFieldVariables (const FieldDescriptor *descriptor, const FieldGeneratorInfo *info, std::map< std::string, std::string > *variables)
 
void SetCommonOneofVariables (const FieldDescriptor *descriptor, const OneofGeneratorInfo *info, std::map< std::string, std::string > *variables)
 
std::string ShortMutableJavaClassName (const Descriptor *descriptor)
 
const FieldDescriptor ** SortFieldsByNumber (const Descriptor *descriptor)
 
std::string StripProto (const std::string &filename)
 
bool SupportFieldPresence (const FileDescriptor *descriptor)
 
bool SupportUnknownEnumValue (const FileDescriptor *descriptor)
 
std::string UnderscoresToCamelCase (const FieldDescriptor *field)
 
std::string UnderscoresToCamelCase (const MethodDescriptor *method)
 
std::string UnderscoresToCamelCase (const std::string &input, bool cap_next_letter)
 
std::string UnderscoresToCamelCaseCheckReserved (const FieldDescriptor *field)
 
std::string UnderscoresToCapitalizedCamelCase (const FieldDescriptor *field)
 
std::string UniqueFileScopeIdentifier (const Descriptor *descriptor)
 
template<typename DescriptorType >
static void WriteDocCommentBody (io::Printer *printer, const DescriptorType *descriptor)
 
static void WriteDocCommentBodyForLocation (io::Printer *printer, const SourceLocation &location)
 
void WriteEnumDocComment (io::Printer *printer, const EnumDescriptor *enum_)
 
void WriteEnumValueDocComment (io::Printer *printer, const EnumValueDescriptor *value)
 
void WriteFieldDocComment (io::Printer *printer, const FieldDescriptor *field)
 
void WriteIntToUtf16CharSequence (int value, std::vector< uint16 > *output)
 
void WriteMessageDocComment (io::Printer *printer, const Descriptor *message)
 
void WriteMethodDocComment (io::Printer *printer, const MethodDescriptor *method)
 
void WriteServiceDocComment (io::Printer *printer, const ServiceDescriptor *service)
 
void WriteUInt32ToUtf16CharSequence (uint32 number, std::vector< uint16 > *output)
 

Variables

const char * bit_masks []
 
static const int kMaxStaticSize = 1 << 15
 
const char kThickSeparator []
 
const char kThinSeparator []
 

Enumeration Type Documentation

◆ JavaType

Enumerator
JAVATYPE_INT 
JAVATYPE_LONG 
JAVATYPE_FLOAT 
JAVATYPE_DOUBLE 
JAVATYPE_BOOLEAN 
JAVATYPE_STRING 
JAVATYPE_BYTES 
JAVATYPE_ENUM 
JAVATYPE_MESSAGE 

Definition at line 205 of file java_helpers.h.

◆ NameEquality

Enumerator
NO_MATCH 
EXACT_EQUAL 
EQUAL_IGNORE_CASE 

Definition at line 51 of file java_name_resolver.h.

Function Documentation

◆ AllAscii()

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

Definition at line 492 of file java_helpers.cc.

◆ AnnotationFileName()

template<typename Descriptor >
std::string google::protobuf::compiler::java::AnnotationFileName ( const Descriptor descriptor,
const std::string suffix 
)

Definition at line 181 of file java_helpers.h.

◆ BoxedPrimitiveTypeName() [1/2]

const char * google::protobuf::compiler::java::BoxedPrimitiveTypeName ( const FieldDescriptor descriptor)

Definition at line 429 of file java_helpers.cc.

◆ BoxedPrimitiveTypeName() [2/2]

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

Definition at line 400 of file java_helpers.cc.

◆ CamelCaseFieldName()

std::string google::protobuf::compiler::java::CamelCaseFieldName ( const FieldDescriptor field)

Definition at line 224 of file java_helpers.cc.

◆ CapitalizedFieldName()

std::string google::protobuf::compiler::java::CapitalizedFieldName ( const FieldDescriptor field)

Definition at line 204 of file java_helpers.cc.

◆ CheckUtf8()

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

Definition at line 391 of file java_helpers.h.

◆ ClassName() [1/4]

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

Definition at line 271 of file java_helpers.cc.

◆ ClassName() [2/4]

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

Definition at line 276 of file java_helpers.cc.

◆ ClassName() [3/4]

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

Definition at line 286 of file java_helpers.cc.

◆ ClassName() [4/4]

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

Definition at line 281 of file java_helpers.cc.

◆ DefaultValue()

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

Definition at line 501 of file java_helpers.cc.

◆ EscapeJavadoc()

PROTOC_EXPORT std::string google::protobuf::compiler::java::EscapeJavadoc ( const std::string input)

Definition at line 47 of file java_doc_comment.cc.

◆ EscapeUtf16ToString()

void google::protobuf::compiler::java::EscapeUtf16ToString ( uint16  code,
std::string output 
)

Definition at line 1000 of file java_helpers.cc.

◆ ExposePublicParser()

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

Definition at line 360 of file java_helpers.h.

◆ ExtraBuilderInterfaces()

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

Definition at line 299 of file java_helpers.cc.

◆ ExtraMessageInterfaces()

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

Definition at line 292 of file java_helpers.cc.

◆ ExtraMessageOrBuilderInterfaces()

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

Definition at line 305 of file java_helpers.cc.

◆ ExtraMutableMessageInterfaces()

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

◆ FieldConstantName()

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

Definition at line 311 of file java_helpers.cc.

◆ FieldTypeName()

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

Definition at line 445 of file java_helpers.cc.

◆ FileClassName()

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

Definition at line 240 of file java_helpers.cc.

◆ FileJavaPackage() [1/2]

std::string google::protobuf::compiler::java::FileJavaPackage ( const FileDescriptor file)

Definition at line 261 of file java_helpers.cc.

◆ FileJavaPackage() [2/2]

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

Definition at line 245 of file java_helpers.cc.

◆ FirstLineOf()

static std::string google::protobuf::compiler::java::FirstLineOf ( const std::string value)
static

Definition at line 150 of file java_doc_comment.cc.

◆ FixedSize()

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

Definition at line 776 of file java_helpers.cc.

◆ GenerateClearBit()

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

Definition at line 672 of file java_helpers.cc.

◆ GeneratedCodeVersionSuffix()

std::string google::protobuf::compiler::java::GeneratedCodeVersionSuffix ( )
inline

Definition at line 396 of file java_helpers.h.

◆ GenerateGetBit()

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

Definition at line 664 of file java_helpers.cc.

◆ GenerateGetBitFromLocal()

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

Definition at line 681 of file java_helpers.cc.

◆ GenerateGetBitMutableLocal()

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

Definition at line 689 of file java_helpers.cc.

◆ GenerateSetBit()

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

Definition at line 668 of file java_helpers.cc.

◆ GenerateSetBitMutableLocal()

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

Definition at line 693 of file java_helpers.cc.

◆ GenerateSetBitToLocal()

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

Definition at line 685 of file java_helpers.cc.

◆ GenerateSibling()

template<typename GeneratorClass , typename DescriptorClass >
static void google::protobuf::compiler::java::GenerateSibling ( const std::string package_dir,
const std::string java_package,
const DescriptorClass *  descriptor,
GeneratorContext context,
std::vector< std::string > *  file_list,
bool  annotate_code,
std::vector< std::string > *  annotation_list,
const std::string name_suffix,
GeneratorClass *  generator,
void(GeneratorClass::*)(io::Printer *printer)  pfn 
)
static

Definition at line 587 of file java_file.cc.

◆ GetBitFieldName()

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

Definition at line 631 of file java_helpers.cc.

◆ GetBitFieldNameForBit()

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

Definition at line 638 of file java_helpers.cc.

◆ GetCapitalizedType()

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

Definition at line 726 of file java_helpers.cc.

◆ GetExperimentalJavaFieldType()

int google::protobuf::compiler::java::GetExperimentalJavaFieldType ( const FieldDescriptor field)

Definition at line 961 of file java_helpers.cc.

◆ GetExperimentalJavaFieldTypeForPacked()

int google::protobuf::compiler::java::GetExperimentalJavaFieldTypeForPacked ( const FieldDescriptor field)

Definition at line 949 of file java_helpers.cc.

◆ GetExperimentalJavaFieldTypeForRepeated()

int google::protobuf::compiler::java::GetExperimentalJavaFieldTypeForRepeated ( const FieldDescriptor field)

Definition at line 941 of file java_helpers.cc.

◆ GetExperimentalJavaFieldTypeForSingular()

int google::protobuf::compiler::java::GetExperimentalJavaFieldTypeForSingular ( const FieldDescriptor field)

Definition at line 926 of file java_helpers.cc.

◆ GetJavaType()

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

Definition at line 321 of file java_helpers.cc.

◆ GetOneofStoredType()

std::string google::protobuf::compiler::java::GetOneofStoredType ( const FieldDescriptor field)

Definition at line 433 of file java_helpers.cc.

◆ GetTableDrivenNumberOfEntriesAndLookUpStartFieldNumber()

std::pair<int, int> google::protobuf::compiler::java::GetTableDrivenNumberOfEntriesAndLookUpStartFieldNumber ( const FieldDescriptor **  fields,
int  count 
)

◆ GetType()

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

Definition at line 317 of file java_helpers.cc.

◆ HasDescriptorMethods() [1/3]

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

Definition at line 242 of file java_helpers.h.

◆ HasDescriptorMethods() [2/3]

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

Definition at line 246 of file java_helpers.h.

◆ HasDescriptorMethods() [3/3]

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

Definition at line 250 of file java_helpers.h.

◆ HasGenericServices()

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

Definition at line 256 of file java_helpers.h.

◆ HasPackedFields()

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

Definition at line 341 of file java_helpers.h.

◆ HasRepeatedFields()

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

Definition at line 882 of file java_helpers.cc.

◆ HasRequiredFields() [1/2]

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

Definition at line 877 of file java_helpers.cc.

◆ HasRequiredFields() [2/2]

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

Definition at line 842 of file java_helpers.cc.

◆ ImmutableDefaultValue()

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

Definition at line 234 of file java_helpers.h.

◆ IsAnyMessage()

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

Definition at line 383 of file java_helpers.h.

◆ IsByteStringWithCustomDefaultValue()

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

Definition at line 612 of file java_helpers.cc.

◆ IsDefaultValueJavaDefault()

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

Definition at line 580 of file java_helpers.cc.

◆ IsDescriptorProto()

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

Definition at line 147 of file java_helpers.h.

◆ IsMapEntry()

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

Definition at line 375 of file java_helpers.h.

◆ IsMapField()

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

Definition at line 379 of file java_helpers.h.

◆ IsOwnFile() [1/2]

template<typename Descriptor >
bool google::protobuf::compiler::java::IsOwnFile ( const Descriptor descriptor,
bool  immutable 
)

Definition at line 166 of file java_helpers.h.

◆ IsOwnFile() [2/2]

template<>
bool google::protobuf::compiler::java::IsOwnFile ( const ServiceDescriptor descriptor,
bool  immutable 
)
inline

Definition at line 172 of file java_helpers.h.

◆ IsReferenceType()

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

Definition at line 697 of file java_helpers.cc.

◆ IsWrappersProtoFile()

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

Definition at line 387 of file java_helpers.h.

◆ JavaPackageToDir()

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

Definition at line 265 of file java_helpers.cc.

◆ MaybePrintGeneratedAnnotation()

template<typename Descriptor >
void google::protobuf::compiler::java::MaybePrintGeneratedAnnotation ( Context context,
io::Printer printer,
Descriptor descriptor,
bool  immutable,
const std::string suffix = "" 
)

Definition at line 187 of file java_helpers.h.

◆ MultipleJavaFiles()

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

Definition at line 158 of file java_helpers.h.

◆ PrimitiveTypeName() [1/2]

const char * google::protobuf::compiler::java::PrimitiveTypeName ( const FieldDescriptor descriptor)

Definition at line 396 of file java_helpers.cc.

◆ PrimitiveTypeName() [2/2]

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

Definition at line 367 of file java_helpers.cc.

◆ PrintEnumVerifierLogic()

void google::protobuf::compiler::java::PrintEnumVerifierLogic ( io::Printer printer,
const FieldDescriptor descriptor,
const std::map< std::string, std::string > &  variables,
const char *  var_name,
const char *  terminating_string,
bool  enforce_lite 
)

Definition at line 138 of file java_helpers.cc.

◆ PrintExtraFieldInfo()

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

Definition at line 278 of file java_field.cc.

◆ PrintGeneratedAnnotation()

void google::protobuf::compiler::java::PrintGeneratedAnnotation ( io::Printer printer,
char  delimiter,
const std::string annotation_file 
)

Definition at line 124 of file java_helpers.cc.

◆ SetCommonFieldVariables()

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

Definition at line 245 of file java_field.cc.

◆ SetCommonOneofVariables()

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

Definition at line 263 of file java_field.cc.

◆ ShortMutableJavaClassName()

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

Definition at line 140 of file java_helpers.h.

◆ SortFieldsByNumber()

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

Definition at line 826 of file java_helpers.cc.

◆ StripProto()

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

Definition at line 232 of file java_helpers.cc.

◆ SupportFieldPresence()

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

Definition at line 355 of file java_helpers.h.

◆ SupportUnknownEnumValue()

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

Definition at line 368 of file java_helpers.h.

◆ UnderscoresToCamelCase() [1/3]

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

Definition at line 196 of file java_helpers.cc.

◆ UnderscoresToCamelCase() [2/3]

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

Definition at line 208 of file java_helpers.cc.

◆ UnderscoresToCamelCase() [3/3]

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

Definition at line 159 of file java_helpers.cc.

◆ UnderscoresToCamelCaseCheckReserved()

std::string google::protobuf::compiler::java::UnderscoresToCamelCaseCheckReserved ( const FieldDescriptor field)

Definition at line 212 of file java_helpers.cc.

◆ UnderscoresToCapitalizedCamelCase()

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

Definition at line 200 of file java_helpers.cc.

◆ UniqueFileScopeIdentifier()

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

Definition at line 220 of file java_helpers.cc.

◆ WriteDocCommentBody()

template<typename DescriptorType >
static void google::protobuf::compiler::java::WriteDocCommentBody ( io::Printer printer,
const DescriptorType *  descriptor 
)
static

Definition at line 142 of file java_doc_comment.cc.

◆ WriteDocCommentBodyForLocation()

static void google::protobuf::compiler::java::WriteDocCommentBodyForLocation ( io::Printer printer,
const SourceLocation location 
)
static

Definition at line 105 of file java_doc_comment.cc.

◆ WriteEnumDocComment()

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

Definition at line 191 of file java_doc_comment.cc.

◆ WriteEnumValueDocComment()

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

Definition at line 200 of file java_doc_comment.cc.

◆ WriteFieldDocComment()

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

Definition at line 175 of file java_doc_comment.cc.

◆ WriteIntToUtf16CharSequence()

void google::protobuf::compiler::java::WriteIntToUtf16CharSequence ( int  value,
std::vector< uint16 > *  output 
)
inline

Definition at line 402 of file java_helpers.h.

◆ WriteMessageDocComment()

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

Definition at line 166 of file java_doc_comment.cc.

◆ WriteMethodDocComment()

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

Definition at line 220 of file java_doc_comment.cc.

◆ WriteServiceDocComment()

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

Definition at line 210 of file java_doc_comment.cc.

◆ WriteUInt32ToUtf16CharSequence()

void google::protobuf::compiler::java::WriteUInt32ToUtf16CharSequence ( uint32  number,
std::vector< uint16 > *  output 
)

Definition at line 906 of file java_helpers.cc.

Variable Documentation

◆ bit_masks

const char* google::protobuf::compiler::java::bit_masks[]
Initial value:
= {
"0x00000001", "0x00000002", "0x00000004", "0x00000008",
"0x00000010", "0x00000020", "0x00000040", "0x00000080",
"0x00000100", "0x00000200", "0x00000400", "0x00000800",
"0x00001000", "0x00002000", "0x00004000", "0x00008000",
"0x00010000", "0x00020000", "0x00040000", "0x00080000",
"0x00100000", "0x00200000", "0x00400000", "0x00800000",
"0x01000000", "0x02000000", "0x04000000", "0x08000000",
"0x10000000", "0x20000000", "0x40000000", "0x80000000",
}

Definition at line 617 of file java_helpers.cc.

◆ kMaxStaticSize

const int google::protobuf::compiler::java::kMaxStaticSize = 1 << 15
static

Definition at line 61 of file java_message.h.

◆ kThickSeparator

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

Definition at line 60 of file java_helpers.cc.

◆ kThinSeparator

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

Definition at line 62 of file java_helpers.cc.



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