java_names.h

#include <google/protobuf/compiler/java/java_names.h>
namespace google::protobuf::compiler::java

Provides a mechanism for mapping a descriptor to the fully-qualified name of the corresponding Java class.

Classes in this file

File Members

These definitions are not part of any class.
std::string
ClassName(const Descriptor * descriptor)
Requires: more...
std::string
ClassName(const EnumDescriptor * descriptor)
Requires: more...
std::string
ClassName(const FileDescriptor * descriptor)
Requires: more...
std::string
ClassName(const ServiceDescriptor * descriptor)
Requires: more...
std::string
FileJavaPackage(const FileDescriptor * descriptor)
Requires: more...
std::string
CapitalizedFieldName(const FieldDescriptor * descriptor)
Requires: more...
const char *
PrimitiveTypeName(const FieldDescriptor * descriptor)
Requires: more...
const char *
BoxedPrimitiveTypeName(const FieldDescriptor * descriptor)
Requires: more...

std::string java::ClassName(
        const Descriptor * descriptor)

Requires:

descriptor != NULL
Returns:
@code

The fully-qualified Java class name.


std::string java::ClassName(
        const EnumDescriptor * descriptor)

Requires:

descriptor != NULL
Returns:
@code

The fully-qualified Java class name.


std::string java::ClassName(
        const FileDescriptor * descriptor)

Requires:

descriptor != NULL
Returns:
@code

The fully-qualified Java class name.


std::string java::ClassName(
        const ServiceDescriptor * descriptor)

Requires:

descriptor != NULL
Returns:
@code

The fully-qualified Java class name.


std::string java::FileJavaPackage(
        const FileDescriptor * descriptor)

Requires:

descriptor != NULL
Returns:
@code

Java package name.


std::string java::CapitalizedFieldName(
        const FieldDescriptor * descriptor)

Requires:

descriptor != NULL

Returns:

Captialized camel case name field name.

const char * java::PrimitiveTypeName(
        const FieldDescriptor * descriptor)

Requires:

descriptor != NULL

Returns:

Primitive Java type name for the field.

const char * java::BoxedPrimitiveTypeName(
        const FieldDescriptor * descriptor)

Requires:

descriptor != NULL

Returns:

Boes primitive Java type name for the field.