20#ifndef INCLUDED_JVMACCESS_VIRTUALMACHINE_HXX
21#define INCLUDED_JVMACCESS_VIRTUALMACHINE_HXX
28#pragma clang diagnostic push
29#pragma clang diagnostic ignored "-Wunknown-attributes"
33#pragma clang diagnostic pop
132 VirtualMachine(JavaVM* pVm,
int nVersion,
bool bDestroy, JNIEnv
const* pMainThreadEnv);
140 JNIEnv* attachThread(
bool* pAttached)
const;
142 void detachThread()
const;
An exception indicating failure to create an AttachGuard.
A helper to attach a thread to a Java virtual machine.
rtl::Reference< VirtualMachine > m_xMachine
JNIEnv * getEnvironment() const
Get a JNI environment pointer for the current thread.
AttachGuard(AttachGuard const &)=delete
AttachGuard & operator=(AttachGuard const &)=delete
An encapsulating wrapper around a Java virtual machine.
VirtualMachine(VirtualMachine const &)=delete
VirtualMachine & operator=(VirtualMachine const &)=delete
#define JVMACCESS_DLLPUBLIC