29#include <rtl/strbuf.h>
30#include <rtl/string.h>
31#include <rtl/string.hxx>
32#include <rtl/ustring.hxx>
42 OStringBuffer buf(128);
45 {
"void",
"java/lang/Void" },
46 {
"boolean",
"java/lang/Boolean" },
47 {
"byte",
"java/lang/Byte" },
48 {
"short",
"java/lang/Short" },
49 {
"short",
"java/lang/Short" },
50 {
"int",
"java/lang/Integer" },
51 {
"int",
"java/lang/Integer" },
52 {
"long",
"java/lang/Long" },
53 {
"long",
"java/lang/Long" },
54 {
"float",
"java/lang/Float" },
55 {
"double",
"java/lang/Double" },
56 {
"char",
"java/lang/Character" },
57 {
"java/lang/String",
"java/lang/String" },
58 {
"com/sun/star/uno/Type",
"com/sun/star/uno/Type" },
59 {
"java/lang/Object",
"java/lang/Object" } };
60 buf.append(javaTypes[
static_cast<int>(sort)][referenceType]);
62 if (nucleus ==
"com/sun/star/uno/XInterface") {
63 buf.append(
"java/lang/Object");
70 return buf.makeStringAndClear();
74 OString
const & identifier, std::string_view prefix)
Sort
An enumeration of all the sorts of relevant UNOIDL entities.
OString translateUnoToJavaType(codemaker::UnoType::Sort sort, std::string_view nucleus, bool referenceType)
OString translateUnoToJavaIdentifier(OString const &identifier, std::string_view prefix)
::boost::spirit::classic::rule< ScannerT > identifier