module

context(env: JniEnv)
val JClass.module: JObject(source)

Returns the java.lang.Module object for the module that the class is a member of. If the class is not in a named module, then the unnamed module of the class loader for the class is returned. If the class represents an array type, then this function returns the Module object for the element type. If the class represents a primitive type or void, then the Module object for the java.base module is returned.

Return

the module that the class or interface is a member of.

Since

JDK/JRE 9