LibreOffice Module bridges (master) 1
|
#include <jni_info.h>
Public Member Functions | |
JNI_info (const JNI_info &)=delete | |
const JNI_info & | operator= (const JNI_info &)=delete |
JNI_type_info const * | get_type_info (JNI_context const &jni, typelib_TypeDescription *type) const |
JNI_type_info const * | get_type_info (JNI_context const &jni, typelib_TypeDescriptionReference *type) const |
JNI_type_info const * | get_type_info (JNI_context const &jni, OUString const &uno_name) const |
void | destroy (JNIEnv *jni_env) |
Static Public Member Functions | |
static void | append_sig (OStringBuffer *buf, typelib_TypeDescriptionReference *type, bool use_Object_for_type_XInterface=true, bool use_slashes=true) |
static JNI_info const * | get_jni_info (rtl::Reference< jvmaccess::UnoVirtualMachine > const &uno_vm) |
Private Member Functions | |
JNI_type_info const * | create_type_info (JNI_context const &jni, typelib_TypeDescription *td) const |
void | destruct (JNIEnv *jni_env) |
JNI_info (JNIEnv *jni_env, jobject class_loader, jclass classClass, jmethodID methodForName) | |
~JNI_info () | |
Private Attributes | |
std::mutex | m_mutex |
t_str2type | m_type_map |
Definition at line 123 of file jni_info.h.
|
delete |
Referenced by get_jni_info().
|
private |
Definition at line 461 of file jni_info.cxx.
References args, destruct(), jni_uno::JNI_context::ensure_no_exception(), Exception, jni_uno::find_class(), jni_uno::JLocalAutoRef::get(), get(), m_class_Any, m_class_AsynchronousFinalizer, m_class_Boolean, m_class_Byte, m_class_Character, m_class_Class, m_class_Double, m_class_Float, m_class_Integer, m_class_JNI_proxy, m_class_Long, m_class_Object, m_class_RuntimeException, m_class_Short, m_class_String, m_class_Type, m_class_TypeClass, m_class_UnoRuntime, m_ctor_Any_with_Type_Object, m_ctor_AsynchronousFinalizer, m_ctor_Boolean_with_boolean, m_ctor_Byte_with_byte, m_ctor_Character_with_char, m_ctor_Double_with_double, m_ctor_Float_with_float, m_ctor_Integer_with_int, m_ctor_Long_with_long, m_ctor_Short_with_short, m_ctor_Type_with_Class, m_ctor_Type_with_Name_TypeClass, m_field_Any_object, m_field_Any_type, m_field_Enum_m_value, m_field_JNI_proxy_m_oid, m_field_JNI_proxy_m_receiver_handle, m_field_JNI_proxy_m_td_handle, m_field_JNI_proxy_m_type, m_field_Type_typeName, m_method_AsynchronousFinalizer_drain, m_method_Boolean_booleanValue, m_method_Byte_byteValue, m_method_Character_charValue, m_method_Class_getName, m_method_Double_doubleValue, m_method_Float_floatValue, m_method_IEnvironment_getRegisteredInterface, m_method_IEnvironment_registerInterface, m_method_Integer_intValue, m_method_JNI_proxy_create, m_method_JNI_proxy_get_proxy_ctor, m_method_Long_longValue, m_method_Object_toString, m_method_Short_shortValue, m_method_Throwable_getMessage, m_method_TypeClass_fromInt, m_method_UnoRuntime_generateOid, m_method_UnoRuntime_queryInterface, m_object_Any_VOID, m_object_java_env, m_object_Type_UNSIGNED_HYPER, m_object_Type_UNSIGNED_LONG, m_object_Type_UNSIGNED_SHORT, m_XInterface_type_info, and jni_uno::ustring_to_jstring().
|
inlineprivate |
Definition at line 237 of file jni_info.h.
|
inlinestatic |
Definition at line 246 of file jni_info.h.
References append_sig(), jni_uno::TypeDescr::get(), i, jni_uno::is_XInterface(), OUStringToOString(), and type.
Referenced by append_sig(), jni_uno::JNI_compound_type_info::JNI_compound_type_info(), jni_uno::JNI_interface_type_info::JNI_interface_type_info(), and jni_uno::Bridge::map_to_java().
|
private |
Definition at line 330 of file jni_info.cxx.
References jni_uno::JNI_type_info::destroy(), jni_uno::JNI_context::get_jni_env(), jni_uno::JNI_context::get_stack_trace(), jni_uno::JNI_type_info_holder::m_info, m_mutex, and m_type_map.
Referenced by get_type_info().
|
inline |
Definition at line 240 of file jni_info.h.
References destruct().
Referenced by destruct(), get_jni_info(), and Java_com_sun_star_bridges_jni_1uno_JNI_1info_1holder_finalize__J().
|
private |
Definition at line 860 of file jni_info.cxx.
References destroy(), i, m_class_Any, m_class_AsynchronousFinalizer, m_class_Boolean, m_class_Byte, m_class_Character, m_class_Class, m_class_Double, m_class_Float, m_class_Integer, m_class_JNI_proxy, m_class_Long, m_class_Object, m_class_RuntimeException, m_class_Short, m_class_String, m_class_Type, m_class_TypeClass, m_class_UnoRuntime, m_object_Any_VOID, m_object_java_env, m_object_Type_UNSIGNED_HYPER, m_object_Type_UNSIGNED_LONG, m_object_Type_UNSIGNED_SHORT, m_type_map, and m_XInterface_type_info.
Referenced by destroy(), and JNI_info().
|
static |
JNI_type_info const * jni_uno::JNI_info::get_type_info | ( | JNI_context const & | jni, |
OUString const & | uno_name | ||
) | const |
Definition at line 430 of file jni_info.cxx.
References create_type_info(), jni_uno::JNI_context::get_stack_trace(), m_mutex, m_type_map, and m_XInterface_type_info.
JNI_type_info const * jni_uno::JNI_info::get_type_info | ( | JNI_context const & | jni, |
typelib_TypeDescription * | type | ||
) | const |
Definition at line 376 of file jni_info.cxx.
References create_type_info(), jni_uno::is_XInterface(), m_mutex, m_type_map, and m_XInterface_type_info.
Referenced by jni_uno::Bridge::call_java(), jni_uno::JNI_compound_type_info::JNI_compound_type_info(), jni_uno::Bridge::map_to_java(), and jni_uno::Bridge::map_to_uno().
JNI_type_info const * jni_uno::JNI_info::get_type_info | ( | JNI_context const & | jni, |
typelib_TypeDescriptionReference * | type | ||
) | const |
Definition at line 403 of file jni_info.cxx.
References create_type_info(), jni_uno::TypeDescr::get(), jni_uno::is_XInterface(), m_mutex, m_type_map, m_XInterface_type_info, and type.
jclass jni_uno::JNI_info::m_class_Any |
Definition at line 152 of file jni_info.h.
Referenced by destruct(), and JNI_info().
jclass jni_uno::JNI_info::m_class_AsynchronousFinalizer |
Definition at line 156 of file jni_info.h.
Referenced by destruct(), and JNI_info().
jclass jni_uno::JNI_info::m_class_Boolean |
Definition at line 141 of file jni_info.h.
Referenced by destruct(), JNI_info(), and jni_uno::Bridge::map_to_java().
jclass jni_uno::JNI_info::m_class_Byte |
Definition at line 142 of file jni_info.h.
Referenced by destruct(), JNI_info(), and jni_uno::Bridge::map_to_java().
jclass jni_uno::JNI_info::m_class_Character |
Definition at line 140 of file jni_info.h.
Referenced by destruct(), JNI_info(), and jni_uno::Bridge::map_to_java().
jclass jni_uno::JNI_info::m_class_Class |
Definition at line 130 of file jni_info.h.
Referenced by destruct(), jni_uno::find_class(), and JNI_info().
jclass jni_uno::JNI_info::m_class_Double |
Definition at line 147 of file jni_info.h.
Referenced by destruct(), JNI_info(), and jni_uno::Bridge::map_to_java().
jclass jni_uno::JNI_info::m_class_Float |
Definition at line 146 of file jni_info.h.
Referenced by destruct(), JNI_info(), and jni_uno::Bridge::map_to_java().
jclass jni_uno::JNI_info::m_class_Integer |
Definition at line 144 of file jni_info.h.
Referenced by destruct(), JNI_info(), and jni_uno::Bridge::map_to_java().
jclass jni_uno::JNI_info::m_class_JNI_proxy |
Definition at line 155 of file jni_info.h.
Referenced by destruct(), JNI_info(), and jni_uno::JNI_interface_type_info::JNI_interface_type_info().
jclass jni_uno::JNI_info::m_class_Long |
Definition at line 145 of file jni_info.h.
Referenced by destruct(), JNI_info(), and jni_uno::Bridge::map_to_java().
jclass jni_uno::JNI_info::m_class_Object |
Definition at line 139 of file jni_info.h.
Referenced by destruct(), and JNI_info().
jclass jni_uno::JNI_info::m_class_RuntimeException |
Definition at line 151 of file jni_info.h.
Referenced by destruct(), and JNI_info().
jclass jni_uno::JNI_info::m_class_Short |
Definition at line 143 of file jni_info.h.
Referenced by destruct(), JNI_info(), and jni_uno::Bridge::map_to_java().
jclass jni_uno::JNI_info::m_class_String |
Definition at line 148 of file jni_info.h.
Referenced by destruct(), JNI_info(), and jni_uno::Bridge::map_to_java().
jclass jni_uno::JNI_info::m_class_Type |
Definition at line 153 of file jni_info.h.
Referenced by jni_uno::create_type(), destruct(), and JNI_info().
jclass jni_uno::JNI_info::m_class_TypeClass |
Definition at line 154 of file jni_info.h.
Referenced by jni_uno::create_type(), destruct(), and JNI_info().
jclass jni_uno::JNI_info::m_class_UnoRuntime |
Definition at line 150 of file jni_info.h.
Referenced by jni_uno::compute_oid(), destruct(), and JNI_info().
jmethodID jni_uno::JNI_info::m_ctor_Any_with_Type_Object |
Definition at line 182 of file jni_info.h.
Referenced by JNI_info().
jmethodID jni_uno::JNI_info::m_ctor_AsynchronousFinalizer |
Definition at line 198 of file jni_info.h.
Referenced by JNI_info().
jmethodID jni_uno::JNI_info::m_ctor_Boolean_with_boolean |
Definition at line 162 of file jni_info.h.
Referenced by JNI_info(), and jni_uno::Bridge::map_to_java().
jmethodID jni_uno::JNI_info::m_ctor_Byte_with_byte |
Definition at line 163 of file jni_info.h.
Referenced by JNI_info(), and jni_uno::Bridge::map_to_java().
jmethodID jni_uno::JNI_info::m_ctor_Character_with_char |
Definition at line 161 of file jni_info.h.
Referenced by JNI_info(), and jni_uno::Bridge::map_to_java().
jmethodID jni_uno::JNI_info::m_ctor_Double_with_double |
Definition at line 168 of file jni_info.h.
Referenced by JNI_info(), and jni_uno::Bridge::map_to_java().
jmethodID jni_uno::JNI_info::m_ctor_Float_with_float |
Definition at line 167 of file jni_info.h.
Referenced by JNI_info(), and jni_uno::Bridge::map_to_java().
jmethodID jni_uno::JNI_info::m_ctor_Integer_with_int |
Definition at line 165 of file jni_info.h.
Referenced by JNI_info(), and jni_uno::Bridge::map_to_java().
jmethodID jni_uno::JNI_info::m_ctor_Long_with_long |
Definition at line 166 of file jni_info.h.
Referenced by JNI_info(), and jni_uno::Bridge::map_to_java().
jmethodID jni_uno::JNI_info::m_ctor_Short_with_short |
Definition at line 164 of file jni_info.h.
Referenced by JNI_info(), and jni_uno::Bridge::map_to_java().
jmethodID jni_uno::JNI_info::m_ctor_Type_with_Class |
Definition at line 185 of file jni_info.h.
Referenced by jni_uno::create_type(), and JNI_info().
jmethodID jni_uno::JNI_info::m_ctor_Type_with_Name_TypeClass |
Definition at line 186 of file jni_info.h.
Referenced by jni_uno::create_type(), and JNI_info().
::com::sun::star::uno::Type const& jni_uno::JNI_info::m_Exception_type |
Definition at line 202 of file jni_info.h.
Referenced by jni_uno::JNI_compound_type_info::JNI_compound_type_info().
jfieldID jni_uno::JNI_info::m_field_Any_object |
Definition at line 184 of file jni_info.h.
Referenced by JNI_info().
jfieldID jni_uno::JNI_info::m_field_Any_type |
Definition at line 183 of file jni_info.h.
Referenced by JNI_info().
jfieldID jni_uno::JNI_info::m_field_Enum_m_value |
Definition at line 189 of file jni_info.h.
Referenced by JNI_info(), and jni_uno::Bridge::map_to_uno().
jfieldID jni_uno::JNI_info::m_field_JNI_proxy_m_oid |
Definition at line 196 of file jni_info.h.
Referenced by JNI_info().
jfieldID jni_uno::JNI_info::m_field_JNI_proxy_m_receiver_handle |
Definition at line 193 of file jni_info.h.
Referenced by JNI_info().
jfieldID jni_uno::JNI_info::m_field_JNI_proxy_m_td_handle |
Definition at line 194 of file jni_info.h.
Referenced by JNI_info().
jfieldID jni_uno::JNI_info::m_field_JNI_proxy_m_type |
Definition at line 195 of file jni_info.h.
Referenced by JNI_info().
jfieldID jni_uno::JNI_info::m_field_Type_typeName |
Definition at line 187 of file jni_info.h.
Referenced by JNI_info().
jmethodID jni_uno::JNI_info::m_method_AsynchronousFinalizer_drain |
Definition at line 199 of file jni_info.h.
Referenced by JNI_info().
jmethodID jni_uno::JNI_info::m_method_Boolean_booleanValue |
Definition at line 169 of file jni_info.h.
Referenced by JNI_info(), and jni_uno::Bridge::map_to_uno().
jmethodID jni_uno::JNI_info::m_method_Byte_byteValue |
Definition at line 170 of file jni_info.h.
Referenced by JNI_info(), and jni_uno::Bridge::map_to_uno().
jmethodID jni_uno::JNI_info::m_method_Character_charValue |
Definition at line 171 of file jni_info.h.
Referenced by JNI_info(), and jni_uno::Bridge::map_to_uno().
jmethodID jni_uno::JNI_info::m_method_Class_forName |
Definition at line 131 of file jni_info.h.
Referenced by jni_uno::find_class().
jmethodID jni_uno::JNI_info::m_method_Class_getName |
Definition at line 159 of file jni_info.h.
Referenced by JNI_info().
jmethodID jni_uno::JNI_info::m_method_Double_doubleValue |
Definition at line 172 of file jni_info.h.
Referenced by JNI_info(), and jni_uno::Bridge::map_to_uno().
jmethodID jni_uno::JNI_info::m_method_Float_floatValue |
Definition at line 173 of file jni_info.h.
Referenced by JNI_info(), and jni_uno::Bridge::map_to_uno().
jmethodID jni_uno::JNI_info::m_method_IEnvironment_getRegisteredInterface |
Definition at line 178 of file jni_info.h.
Referenced by JNI_info().
jmethodID jni_uno::JNI_info::m_method_IEnvironment_registerInterface |
Definition at line 179 of file jni_info.h.
Referenced by JNI_info().
jmethodID jni_uno::JNI_info::m_method_Integer_intValue |
Definition at line 174 of file jni_info.h.
Referenced by JNI_info(), and jni_uno::Bridge::map_to_uno().
jmethodID jni_uno::JNI_info::m_method_JNI_proxy_create |
Definition at line 192 of file jni_info.h.
Referenced by JNI_info().
jmethodID jni_uno::JNI_info::m_method_JNI_proxy_get_proxy_ctor |
Definition at line 191 of file jni_info.h.
Referenced by JNI_info(), and jni_uno::JNI_interface_type_info::JNI_interface_type_info().
jmethodID jni_uno::JNI_info::m_method_Long_longValue |
Definition at line 175 of file jni_info.h.
Referenced by JNI_info(), and jni_uno::Bridge::map_to_uno().
jmethodID jni_uno::JNI_info::m_method_Object_toString |
Definition at line 158 of file jni_info.h.
Referenced by JNI_info().
jmethodID jni_uno::JNI_info::m_method_Short_shortValue |
Definition at line 176 of file jni_info.h.
Referenced by JNI_info(), and jni_uno::Bridge::map_to_uno().
jmethodID jni_uno::JNI_info::m_method_Throwable_getMessage |
Definition at line 160 of file jni_info.h.
Referenced by JNI_info().
jmethodID jni_uno::JNI_info::m_method_TypeClass_fromInt |
Definition at line 188 of file jni_info.h.
Referenced by jni_uno::create_type(), and JNI_info().
jmethodID jni_uno::JNI_info::m_method_UnoRuntime_generateOid |
Definition at line 180 of file jni_info.h.
Referenced by jni_uno::compute_oid(), and JNI_info().
jmethodID jni_uno::JNI_info::m_method_UnoRuntime_queryInterface |
Definition at line 181 of file jni_info.h.
Referenced by JNI_info().
|
mutableprivate |
Definition at line 125 of file jni_info.h.
Referenced by create_type_info(), and get_type_info().
jobject jni_uno::JNI_info::m_object_Any_VOID |
Definition at line 134 of file jni_info.h.
Referenced by destruct(), and JNI_info().
jobject jni_uno::JNI_info::m_object_java_env |
Definition at line 133 of file jni_info.h.
Referenced by destruct(), JNI_info(), and jni_uno::Bridge::map_to_java().
jobject jni_uno::JNI_info::m_object_Type_UNSIGNED_HYPER |
Definition at line 137 of file jni_info.h.
Referenced by destruct(), JNI_info(), and jni_uno::Bridge::map_to_java().
jobject jni_uno::JNI_info::m_object_Type_UNSIGNED_LONG |
Definition at line 136 of file jni_info.h.
Referenced by destruct(), JNI_info(), and jni_uno::Bridge::map_to_java().
jobject jni_uno::JNI_info::m_object_Type_UNSIGNED_SHORT |
Definition at line 135 of file jni_info.h.
Referenced by destruct(), JNI_info(), and jni_uno::Bridge::map_to_java().
::com::sun::star::uno::Type const& jni_uno::JNI_info::m_RuntimeException_type |
Definition at line 203 of file jni_info.h.
Referenced by jni_uno::JNI_compound_type_info::JNI_compound_type_info().
|
mutableprivate |
Definition at line 126 of file jni_info.h.
Referenced by create_type_info(), destruct(), and get_type_info().
::com::sun::star::uno::Type const& jni_uno::JNI_info::m_void_type |
Definition at line 204 of file jni_info.h.
::com::sun::star::uno::TypeDescription jni_uno::JNI_info::m_XInterface_queryInterface_td |
Definition at line 201 of file jni_info.h.
JNI_interface_type_info const* jni_uno::JNI_info::m_XInterface_type_info |
Definition at line 205 of file jni_info.h.
Referenced by destruct(), get_type_info(), and JNI_info().