jaulib v1.3.0
Jau Support Library (C++, Java, ..)
Public Member Functions | List of all members
jau::jni::JavaUplink Class Referenceabstract

Sharing the anonymous Java object (JavaAnon), i.e. More...

#include <java_uplink.hpp>

Collaboration diagram for jau::jni::JavaUplink:

Public Member Functions

 JavaUplink () noexcept=default
 
 JavaUplink (const JavaUplink &o) noexcept=default
 
 JavaUplink (JavaUplink &&o) noexcept=default
 
virtual ~JavaUplink () noexcept
 
virtual void checkValidInstance () const
 Throws an IllegalStateException if instance is not valid. More...
 
virtual std::string get_java_class () const noexcept=0
 
const JavaAnonRefgetJavaObject () noexcept
 
std::string javaObjectToString () const noexcept
 
JavaUplinkoperator= (const JavaUplink &o) noexcept=default
 
JavaUplinkoperator= (JavaUplink &&o) noexcept=default
 
void setJavaObject () noexcept
 Resets the shared JavaAnon reference, the replaced item might be deleted via JNI from dtor. More...
 
void setJavaObject (const JavaAnonRef &objRef) noexcept
 Assigns a new shared JavaAnon reference, replaced item might be deleted via JNI from dtor. More...
 
virtual std::string toString () const noexcept
 

Detailed Description

Sharing the anonymous Java object (JavaAnon), i.e.

exposing the Java object uplink to the C++ implementation.

Definition at line 61 of file java_uplink.hpp.

Constructor & Destructor Documentation

◆ JavaUplink() [1/3]

jau::jni::JavaUplink::JavaUplink ( )
defaultnoexcept

◆ JavaUplink() [2/3]

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

◆ JavaUplink() [3/3]

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

◆ ~JavaUplink()

virtual jau::jni::JavaUplink::~JavaUplink ( )
inlinevirtualnoexcept

Definition at line 100 of file java_uplink.hpp.

Member Function Documentation

◆ toString()

virtual std::string jau::jni::JavaUplink::toString ( ) const
inlinevirtualnoexcept

Definition at line 66 of file java_uplink.hpp.

◆ get_java_class()

virtual std::string jau::jni::JavaUplink::get_java_class ( ) const
pure virtualnoexcept

◆ javaObjectToString()

std::string jau::jni::JavaUplink::javaObjectToString ( ) const
inlinenoexcept

Definition at line 70 of file java_uplink.hpp.

◆ getJavaObject()

const JavaAnonRef & jau::jni::JavaUplink::getJavaObject ( )
inlinenoexcept

Definition at line 79 of file java_uplink.hpp.

◆ setJavaObject() [1/2]

void jau::jni::JavaUplink::setJavaObject ( const JavaAnonRef objRef)
inlinenoexcept

Assigns a new shared JavaAnon reference, replaced item might be deleted via JNI from dtor.

Definition at line 82 of file java_uplink.hpp.

◆ setJavaObject() [2/2]

void jau::jni::JavaUplink::setJavaObject ( )
inlinenoexcept

Resets the shared JavaAnon reference, the replaced item might be deleted via JNI from dtor.

Definition at line 85 of file java_uplink.hpp.

◆ checkValidInstance()

virtual void jau::jni::JavaUplink::checkValidInstance ( ) const
inlinevirtual

Throws an IllegalStateException if instance is not valid.

Default implementation does nothing.

Definition at line 92 of file java_uplink.hpp.

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

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