35 #ifndef GOOGLE_PROTOBUF_COMPILER_JAVA_HELPERS_H__ 36 #define GOOGLE_PROTOBUF_COMPILER_JAVA_HELPERS_H__ 90 const FileDescriptor*
file);
119 return descriptor->
name();
181 return !enforce_lite &&
187 return !enforce_lite &&
193 return !enforce_lite &&
282 const Descriptor::ExtensionRange*
b)
const {
283 return a->start < b->start;
331 return descriptor->
is_map();
339 return descriptor->
full_name() ==
"google.protobuf.Any";
352 #endif // GOOGLE_PROTOBUF_COMPILER_JAVA_HELPERS_H__
Definition: descriptor.h:801
string DefaultValue(const FieldDescriptor *field, bool immutable, ClassNameResolver *name_resolver)
Definition: java_helpers.cc:387
const char * GetCapitalizedType(const FieldDescriptor *field, bool immutable)
Definition: java_helpers.cc:622
bool SupportUnknownEnumValue(const FileDescriptor *descriptor)
Definition: java_helpers.h:319
string UniqueFileScopeIdentifier(const Descriptor *descriptor)
Definition: java_helpers.cc:151
string GenerateClearBit(int bitIndex)
Definition: java_helpers.cc:577
const FieldDescriptor * field
Definition: parser_unittest.cc:2279
Definition: descriptor.h:1229
bool IsMapEntry(const Descriptor *descriptor)
Definition: java_helpers.h:326
string UnderscoresToCapitalizedCamelCase(const FieldDescriptor *field)
Definition: java_helpers.cc:143
Definition: java_helpers.h:145
const MessageOptions & options() const
int service_count() const
Definition: java_helpers.h:144
bool HasRequiredFields(const Descriptor *type, hash_set< const Descriptor *> *already_seen)
Definition: java_helpers.cc:703
const FileDescriptor * file() const
const FieldOptions & options() const
Definition: java_helpers.h:146
const Descriptor * descriptor
Definition: descriptor.cc:271
const char kThinSeparator[]
Definition: java_helpers.cc:57
string GenerateGetBitFromLocal(int bitIndex)
Definition: java_helpers.cc:586
Definition: descriptor.h:1228
Definition: java_helpers.h:147
const FileOptions & options() const
Definition: descriptor.h:1156
int FixedSize(FieldDescriptor::Type type)
Definition: java_helpers.cc:655
string GenerateGetBit(int bitIndex)
Definition: java_helpers.cc:569
Definition: descriptor.h:172
::google::protobuf::FileOptions_OptimizeMode optimize_for() const
Definition: descriptor.pb.h:5955
string ImmutableDefaultValue(const FieldDescriptor *field, ClassNameResolver *name_resolver)
Definition: java_helpers.h:167
string ExtraBuilderInterfaces(const Descriptor *descriptor)
Definition: java_helpers.cc:241
Definition: java_helpers.h:273
JavaType
Definition: java_helpers.h:138
bool PreserveUnknownFields(const Descriptor *descriptor)
Definition: java_helpers.h:334
USVString filename
Definition: ErrorEvent.idl:46
bool HasPackedFields(const Descriptor *descriptor)
Definition: java_helpers.h:292
string FieldConstantName(const FieldDescriptor *field)
Definition: java_helpers.cc:253
static const OptimizeMode LITE_RUNTIME
Definition: descriptor.pb.h:1896
bool HasEqualsAndHashCode(const Descriptor *descriptor)
Definition: java_helpers.h:174
string ShortMutableJavaClassName(const Descriptor *descriptor)
Definition: java_helpers.h:118
string GenerateGetBitMutableLocal(int bitIndex)
Definition: java_helpers.cc:594
Definition: descriptor.h:439
bool IsDefaultValueJavaDefault(const FieldDescriptor *field)
Definition: java_helpers.cc:466
Definition: java_name_resolver.h:53
string StripProto(const string &filename)
Definition: java_helpers.cc:155
string GetBitFieldName(int index)
Definition: java_helpers.cc:536
VoEFile * file
Definition: voe_cmd_test.cc:59
Definition: protobuf.h:85
bool IsLazy(const FieldDescriptor *descriptor, bool enforce_lite)
Definition: java_helpers.h:204
Type
Definition: descriptor.h:443
GLuint index
Definition: gl2.h:383
Definition: java_helpers.h:143
Definition: java_helpers.h:140
bool HasDescriptorMethods(const Descriptor *descriptor, bool enforce_lite)
Definition: java_helpers.h:179
bool operator()(const Descriptor::ExtensionRange *a, const Descriptor::ExtensionRange *b) const
Definition: java_helpers.h:281
const FieldDescriptor * field(int index) const
string FileClassName(const FileDescriptor *file, bool immutable)
Definition: java_helpers.cc:163
EGLImageKHR EGLint * name
Definition: eglext.h:851
string ClassName(const Descriptor *descriptor)
Definition: java_helpers.cc:214
string ToJavaName(const string &full_name, const FileDescriptor *file)
Definition: java_helpers.cc:193
const char * BoxedPrimitiveTypeName(JavaType type)
Definition: java_helpers.cc:329
Definition: __init__.py:1
string GetBitFieldNameForBit(int bitIndex)
Definition: java_helpers.cc:543
GLboolean GLboolean GLboolean GLboolean a
Definition: gl2ext.h:306
FieldDescriptor::Type GetType(const FieldDescriptor *field)
Definition: java_helpers.cc:259
const char kThickSeparator[]
Definition: java_helpers.cc:55
bool MultipleJavaFiles(const FileDescriptor *descriptor, bool immutable)
Definition: java_helpers.h:124
bool HasGenericServices(const FileDescriptor *file, bool enforce_lite)
Definition: java_helpers.h:198
Definition: java_helpers.h:280
WireFormatLite::FieldType field_type(FieldType type)
Definition: extension_set_heavy.cc:133
bool IsReferenceType(JavaType type)
Definition: java_helpers.cc:602
bool IsMapField(const FieldDescriptor *descriptor)
Definition: java_helpers.h:330
EGLenum type
Definition: eglext.h:63
bool is_packed() const
Definition: descriptor.cc:2623
string GenerateSetBitMutableLocal(int bitIndex)
Definition: java_helpers.cc:598
bool java_generate_equals_and_hash() const
Definition: descriptor.pb.h:5907
const char * PrimitiveTypeName(JavaType type)
Definition: java_helpers.cc:309
const FieldDescriptor ** SortFieldsByNumber(const Descriptor *descriptor)
Definition: java_helpers.cc:687
JavaType GetJavaType(const FieldDescriptor *field)
Definition: java_helpers.cc:263
for i
Definition: complexityMeasures.m:24
string ExtraMutableMessageInterfaces(const Descriptor *descriptor)
string GenerateSetBit(int bitIndex)
Definition: java_helpers.cc:573
Syntax syntax() const
Definition: descriptor.h:1899
bool java_generic_services() const
Definition: descriptor.pb.h:6058
Definition: java_helpers.h:142
const FileDescriptor * file() const
string ExtraMessageInterfaces(const Descriptor *descriptor)
Definition: java_helpers.cc:234
bool java_string_check_utf8() const
Definition: descriptor.pb.h:5931
bool map_entry() const
Definition: descriptor.pb.h:6368
string JavaPackageToDir(string package_name)
Definition: java_helpers.cc:184
GLboolean GLboolean GLboolean b
Definition: gl2ext.h:306
const string & name() const
Definition: gflags_completions.h:115
string FileJavaPackage(const FileDescriptor *file, bool immutable)
Definition: java_helpers.cc:168
bool SupportFieldPresence(const FileDescriptor *descriptor)
Definition: java_helpers.h:306
const char * FieldTypeName(FieldDescriptor::Type field_type)
Definition: java_helpers.cc:349
bool CheckUtf8(const FieldDescriptor *descriptor)
Definition: java_helpers.h:342
string GenerateSetBitToLocal(int bitIndex)
Definition: java_helpers.cc:590
Definition: java_helpers.h:139
bool java_multiple_files() const
Definition: descriptor.pb.h:5883
string ExtraMessageOrBuilderInterfaces(const Descriptor *descriptor)
Definition: java_helpers.cc:247
Definition: java_helpers.h:141
const string & full_name() const
bool is_map() const
Definition: descriptor.cc:1677
bool lazy() const
Definition: descriptor.pb.h:6500
bool HasRepeatedFields(const Descriptor *descriptor)
Definition: java_helpers.cc:744
bool ExposePublicParser(const FileDescriptor *descriptor)
Definition: java_helpers.h:311
Definition: protobuf.h:70
bool IsAnyMessage(const Descriptor *descriptor)
Definition: java_helpers.h:338
Definition: protobuf.h:95
const FileDescriptor * file() const
bool operator()(const FieldDescriptor *a, const FieldDescriptor *b) const
Definition: java_helpers.h:274
string UnderscoresToCamelCase(const string &input, bool cap_next_letter)
Definition: java_helpers.cc:104