JUCE  v5.4.1-191-g0ab5e696f
JUCE API
Looking for a senior C++ dev?
I'm looking for work. Hire me!
juce::JNIClassBase Class Referenceabstract

#include <juce_android_JNIHelpers.h>

Collaboration diagram for juce::JNIClassBase:

Public Member Functions

 JNIClassBase (const char *classPath, int minSDK, const void *byteCode, size_t byteCodeSize)
 
virtual ~JNIClassBase ()
 
const char * getClassPath () const noexcept
 
 operator jclass () const noexcept
 

Static Public Member Functions

static void initialiseAllClasses (JNIEnv *)
 
static void releaseAllClasses (JNIEnv *)
 

Protected Member Functions

virtual void initialiseFields (JNIEnv *)=0
 
void resolveCallbacks (JNIEnv *, const Array< JNINativeMethod > &)
 
jfieldID resolveField (JNIEnv *, const char *fieldName, const char *signature)
 
jmethodID resolveMethod (JNIEnv *, const char *methodName, const char *params)
 
jfieldID resolveStaticField (JNIEnv *, const char *fieldName, const char *signature)
 
jmethodID resolveStaticMethod (JNIEnv *, const char *methodName, const char *params)
 

Private Member Functions

void initialise (JNIEnv *)
 
void release (JNIEnv *)
 
void tryLoadingClassWithClassLoader (JNIEnv *env, jobject classLoader)
 

Static Private Member Functions

static Array< JNIClassBase * > & getClasses ()
 

Private Attributes

const void * byteCode
 
size_t byteCodeSize
 
const char *const classPath
 
jclass classRef = 0
 
int minSDK
 

Friends

struct SystemJavaClassComparator
 

Constructor & Destructor Documentation

◆ JNIClassBase()

juce::JNIClassBase::JNIClassBase ( const char *  classPath,
int  minSDK,
const void *  byteCode,
size_t  byteCodeSize 
)
explicit

◆ ~JNIClassBase()

virtual juce::JNIClassBase::~JNIClassBase ( )
virtual

Member Function Documentation

◆ getClasses()

static Array<JNIClassBase*>& juce::JNIClassBase::getClasses ( )
staticprivate

◆ getClassPath()

const char* juce::JNIClassBase::getClassPath ( ) const
inlinenoexcept

◆ initialise()

void juce::JNIClassBase::initialise ( JNIEnv *  )
private

◆ initialiseAllClasses()

static void juce::JNIClassBase::initialiseAllClasses ( JNIEnv *  )
static

◆ initialiseFields()

virtual void juce::JNIClassBase::initialiseFields ( JNIEnv *  )
protectedpure virtual

◆ operator jclass()

juce::JNIClassBase::operator jclass ( ) const
inlinenoexcept

◆ release()

void juce::JNIClassBase::release ( JNIEnv *  )
private

◆ releaseAllClasses()

static void juce::JNIClassBase::releaseAllClasses ( JNIEnv *  )
static

◆ resolveCallbacks()

void juce::JNIClassBase::resolveCallbacks ( JNIEnv *  ,
const Array< JNINativeMethod > &   
)
protected

◆ resolveField()

jfieldID juce::JNIClassBase::resolveField ( JNIEnv *  ,
const char *  fieldName,
const char *  signature 
)
protected

◆ resolveMethod()

jmethodID juce::JNIClassBase::resolveMethod ( JNIEnv *  ,
const char *  methodName,
const char *  params 
)
protected

◆ resolveStaticField()

jfieldID juce::JNIClassBase::resolveStaticField ( JNIEnv *  ,
const char *  fieldName,
const char *  signature 
)
protected

◆ resolveStaticMethod()

jmethodID juce::JNIClassBase::resolveStaticMethod ( JNIEnv *  ,
const char *  methodName,
const char *  params 
)
protected

◆ tryLoadingClassWithClassLoader()

void juce::JNIClassBase::tryLoadingClassWithClassLoader ( JNIEnv *  env,
jobject  classLoader 
)
private

Friends And Related Function Documentation

◆ SystemJavaClassComparator

friend struct SystemJavaClassComparator
friend

Member Data Documentation

◆ byteCode

const void* juce::JNIClassBase::byteCode
private

◆ byteCodeSize

size_t juce::JNIClassBase::byteCodeSize
private

◆ classPath

const char* const juce::JNIClassBase::classPath
private

◆ classRef

jclass juce::JNIClassBase::classRef = 0
private

◆ minSDK

int juce::JNIClassBase::minSDK
private

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