JavaClass

This is the base class you inherit from in D classes that represent Java classes. You can then mark your methods @Import if they are implemented in Java and you want to call them from D, or @Export if they are implemented in D and want to be called as a native method from Java.

Methods marked without either of these signifiers are not associated with Java.

You should not expect any instance data on these to survive function calls, since associating it back with Java across calls may be impossible.

class JavaClass : IJavaObject (
string javaPackage
CRTP
Parent = void
bool isNewClass = false
) {}

Inherited Members

From IJavaObject

getJavaHandle
jobject getJavaHandle()

Remember the returned object is a TEMPORARY local reference!

Suggestion Box / Bug Report