Direct-BT v3.3.0-1-gc2d430c
Direct-BT - Direct Bluetooth Programming.
Public Member Functions | Static Public Member Functions | List of all members
jau::jni::JavaGlobalObj Class Reference

Implementation for JavaAnon, by simply wrapping a JNIGlobalRef instance. More...

#include <helper_jni.hpp>

Inheritance diagram for jau::jni::JavaGlobalObj:
Collaboration diagram for jau::jni::JavaGlobalObj:

Public Member Functions

 JavaGlobalObj (const JavaGlobalObj &o) noexcept=default
 
 JavaGlobalObj (const JNIGlobalRef &obj, jmethodID mNotifyDeleted_) noexcept
 
 JavaGlobalObj (JavaGlobalObj &&o) noexcept=default
 
 JavaGlobalObj (JNIGlobalRef &&obj, jmethodID mNotifyDeleted_) noexcept
 
 JavaGlobalObj (jobject obj, jmethodID mNotifyDeleted_) noexcept
 
 ~JavaGlobalObj () noexcept override
 
jclass getClass () const noexcept
 
const JNIGlobalRefgetJavaObject () const noexcept
 
JNIGlobalRef getJavaObject () noexcept
 
jobject getObject () const noexcept
 
JavaGlobalObjoperator= (const JavaGlobalObj &o) noexcept=default
 
JavaGlobalObjoperator= (JavaGlobalObj &&o) noexcept=default
 
std::string toString () const noexcept override
 
- Public Member Functions inherited from jau::jni::JavaAnon
virtual ~JavaAnon () noexcept=default
 
virtual std::string toString () const noexcept
 

Static Public Member Functions

static void check (const JavaAnonRef &shref, const char *file, int line)
 
static jobject checkAndGetObject (const JavaAnonRef &shref, const char *file, int line)
 
static jclass GetClass (const JavaAnonRef &shref) noexcept
 
static JNIGlobalRef GetJavaObject (const JavaAnonRef &shref) noexcept
 
static jobject GetObject (const JavaAnonRef &shref) noexcept
 
static bool isValid (const JavaAnonRef &shref) noexcept
 

Detailed Description

Implementation for JavaAnon, by simply wrapping a JNIGlobalRef instance.

Definition at line 166 of file helper_jni.hpp.

Constructor & Destructor Documentation

◆ JavaGlobalObj() [1/5]

jau::jni::JavaGlobalObj::JavaGlobalObj ( jobject  obj,
jmethodID  mNotifyDeleted_ 
)
inlinenoexcept

Definition at line 207 of file helper_jni.hpp.

◆ JavaGlobalObj() [2/5]

jau::jni::JavaGlobalObj::JavaGlobalObj ( const JNIGlobalRef obj,
jmethodID  mNotifyDeleted_ 
)
inlinenoexcept

Definition at line 210 of file helper_jni.hpp.

◆ JavaGlobalObj() [3/5]

jau::jni::JavaGlobalObj::JavaGlobalObj ( JNIGlobalRef &&  obj,
jmethodID  mNotifyDeleted_ 
)
inlinenoexcept

Definition at line 213 of file helper_jni.hpp.

◆ JavaGlobalObj() [4/5]

jau::jni::JavaGlobalObj::JavaGlobalObj ( const JavaGlobalObj o)
defaultnoexcept

◆ JavaGlobalObj() [5/5]

jau::jni::JavaGlobalObj::JavaGlobalObj ( JavaGlobalObj &&  o)
defaultnoexcept

◆ ~JavaGlobalObj()

jau::jni::JavaGlobalObj::~JavaGlobalObj ( )
overridenoexcept

Member Function Documentation

◆ check()

static void jau::jni::JavaGlobalObj::check ( const JavaAnonRef shref,
const char *  file,
int  line 
)
inlinestatic

Definition at line 172 of file helper_jni.hpp.

◆ checkAndGetObject()

static jobject jau::jni::JavaGlobalObj::checkAndGetObject ( const JavaAnonRef shref,
const char *  file,
int  line 
)
inlinestatic

Definition at line 184 of file helper_jni.hpp.

◆ isValid()

static bool jau::jni::JavaGlobalObj::isValid ( const JavaAnonRef shref)
inlinestaticnoexcept

Definition at line 197 of file helper_jni.hpp.

◆ operator=() [1/2]

JavaGlobalObj & jau::jni::JavaGlobalObj::operator= ( const JavaGlobalObj o)
defaultnoexcept

◆ operator=() [2/2]

JavaGlobalObj & jau::jni::JavaGlobalObj::operator= ( JavaGlobalObj &&  o)
defaultnoexcept

◆ toString()

std::string jau::jni::JavaGlobalObj::toString ( ) const
inlineoverridevirtualnoexcept

Reimplemented from jau::jni::JavaAnon.

Definition at line 223 of file helper_jni.hpp.

◆ getJavaObject() [1/2]

const JNIGlobalRef & jau::jni::JavaGlobalObj::getJavaObject ( ) const
inlinenoexcept

Definition at line 228 of file helper_jni.hpp.

Here is the caller graph for this function:

◆ getJavaObject() [2/2]

JNIGlobalRef jau::jni::JavaGlobalObj::getJavaObject ( )
inlinenoexcept

Definition at line 229 of file helper_jni.hpp.

◆ getObject()

jobject jau::jni::JavaGlobalObj::getObject ( ) const
inlinenoexcept

Definition at line 232 of file helper_jni.hpp.

Here is the caller graph for this function:

◆ getClass()

jclass jau::jni::JavaGlobalObj::getClass ( ) const
inlinenoexcept

Definition at line 234 of file helper_jni.hpp.

Here is the caller graph for this function:

◆ GetJavaObject()

static JNIGlobalRef jau::jni::JavaGlobalObj::GetJavaObject ( const JavaAnonRef shref)
inlinestaticnoexcept

Definition at line 237 of file helper_jni.hpp.

◆ GetObject()

static jobject jau::jni::JavaGlobalObj::GetObject ( const JavaAnonRef shref)
inlinestaticnoexcept

Definition at line 241 of file helper_jni.hpp.

Here is the caller graph for this function:

◆ GetClass()

static jclass jau::jni::JavaGlobalObj::GetClass ( const JavaAnonRef shref)
inlinestaticnoexcept

Definition at line 246 of file helper_jni.hpp.


The documentation for this class was generated from the following file: