LibreOffice Module bridges (master) 1
Classes | Typedefs | Functions
jni_uno Namespace Reference

Classes

struct  Bridge
 
struct  BridgeRuntimeError
 
class  JLocalAutoRef
 
struct  JNI_compound_type_info
 
class  JNI_context
 
class  JNI_guarded_context
 
class  JNI_info
 
struct  JNI_interface_type_info
 
struct  JNI_type_info
 
struct  JNI_type_info_holder
 
struct  JniUnoEnvironmentData
 
struct  Mapping
 
struct  rtl_mem
 
class  TypeDescr
 

Typedefs

typedef std::unordered_map< OUString, JNI_type_info_holdert_str2type
 

Functions

static std::unique_ptr< rtl_memseq_allocate (sal_Int32 nElements, sal_Int32 nSize)
 
void jstring_to_ustring (JNI_context const &jni, rtl_uString **out_ustr, jstring jstr)
 
OUString jstring_to_oustring (JNI_context const &jni, jstring jstr)
 
jstring ustring_to_jstring (JNI_context const &jni, rtl_uString const *ustr)
 
jclass find_class (JNI_context const &jni, char const *class_name, bool inException=false)
 
jobject create_type (JNI_context const &jni, jclass clazz)
 
jobject create_type (JNI_context const &jni, typelib_TypeDescriptionReference *type)
 
jobject compute_oid (JNI_context const &jni, jobject jo)
 
bool type_equals (typelib_TypeDescriptionReference *type1, typelib_TypeDescriptionReference *type2)
 
bool is_XInterface (typelib_TypeDescriptionReference *type)
 

Typedef Documentation

◆ t_str2type

typedef std::unordered_map< OUString, JNI_type_info_holder > jni_uno::t_str2type

Definition at line 121 of file jni_info.h.

Function Documentation

◆ compute_oid()

jobject jni_uno::compute_oid ( JNI_context const &  jni,
jobject  jo 
)
inline

◆ create_type() [1/2]

jobject jni_uno::create_type ( JNI_context const &  jni,
jclass  clazz 
)
inline

◆ create_type() [2/2]

jobject jni_uno::create_type ( JNI_context const &  jni,
typelib_TypeDescriptionReference *  type 
)
inline

◆ find_class()

jclass jni_uno::find_class ( JNI_context const &  jni,
char const *  class_name,
bool  inException = false 
)
inline

◆ is_XInterface()

bool jni_uno::is_XInterface ( typelib_TypeDescriptionReference *  type)
inline

◆ jstring_to_oustring()

OUString jni_uno::jstring_to_oustring ( JNI_context const &  jni,
jstring  jstr 
)
inline

◆ jstring_to_ustring()

void jni_uno::jstring_to_ustring ( JNI_context const &  jni,
rtl_uString **  out_ustr,
jstring  jstr 
)
inline

◆ seq_allocate()

static std::unique_ptr< rtl_mem > jni_uno::seq_allocate ( sal_Int32  nElements,
sal_Int32  nSize 
)
static

Definition at line 34 of file jni_data.cxx.

References jni_uno::rtl_mem::allocate(), nElements, p, and SAL_SEQUENCE_HEADER_SIZE.

Referenced by jni_uno::Bridge::map_to_uno().

◆ type_equals()

bool jni_uno::type_equals ( typelib_TypeDescriptionReference *  type1,
typelib_TypeDescriptionReference *  type2 
)
inline

◆ ustring_to_jstring()

jstring jni_uno::ustring_to_jstring ( JNI_context const &  jni,
rtl_uString const *  ustr 
)
inline