Classification for all nitni callbacks

Introduced properties

fun compile_callback_to_java(mmodule: MModule, mainmodule: MModule, ccu: CCompilationUnit)

nitc :: NitniCallback :: compile_callback_to_java

Compile C and Java code to implement this callback
fun compile_callback_to_objc(mmodule: MModule, mainmodule: MModule)

nitc :: NitniCallback :: compile_callback_to_objc

Compile this callback to be callable from Objective-C
fun jni_methods_declaration(from_module: MModule): Array[String]

nitc :: NitniCallback :: jni_methods_declaration

Returns the list of C functions to link with extern Java methods, as required

Redefined properties

redef type SELF: NitniCallback

nitc $ NitniCallback :: SELF

Type of this instance, automatically specialized in every class

All properties

fun !=(other: nullable Object): Bool

core :: Object :: !=

Have self and other different values?
fun ==(other: nullable Object): Bool

core :: Object :: ==

Have self and other the same value?
type CLASS: Class[SELF]

core :: Object :: CLASS

The type of the class of self.
type SELF: Object

core :: Object :: SELF

Type of this instance, automatically specialized in every class
protected fun class_factory(name: String): CLASS

core :: Object :: class_factory

Implementation used by get_class to create the specific class.
fun class_name: String

core :: Object :: class_name

The class name of the object.
fun compile_callback_to_java(mmodule: MModule, mainmodule: MModule, ccu: CCompilationUnit)

nitc :: NitniCallback :: compile_callback_to_java

Compile C and Java code to implement this callback
fun compile_callback_to_objc(mmodule: MModule, mainmodule: MModule)

nitc :: NitniCallback :: compile_callback_to_objc

Compile this callback to be callable from Objective-C
fun get_class: CLASS

core :: Object :: get_class

The meta-object representing the dynamic type of self.
fun hash: Int

core :: Object :: hash

The hash code of the object.
init init

core :: Object :: init

fun inspect: String

core :: Object :: inspect

Developer readable representation of self.
protected fun inspect_head: String

core :: Object :: inspect_head

Return "CLASSNAME:#OBJECTID".
intern fun is_same_instance(other: nullable Object): Bool

core :: Object :: is_same_instance

Return true if self and other are the same instance (i.e. same identity).
fun is_same_serialized(other: nullable Object): Bool

core :: Object :: is_same_serialized

Is self the same as other in a serialization context?
intern fun is_same_type(other: Object): Bool

core :: Object :: is_same_type

Return true if self and other have the same dynamic type.
fun jni_methods_declaration(from_module: MModule): Array[String]

nitc :: NitniCallback :: jni_methods_declaration

Returns the list of C functions to link with extern Java methods, as required
private intern fun native_class_name: CString

core :: Object :: native_class_name

The class name of the object in CString format.
intern fun object_id: Int

core :: Object :: object_id

An internal hash code for the object based on its identity.
fun output

core :: Object :: output

Display self on stdout (debug only).
intern fun output_class_name

core :: Object :: output_class_name

Display class name on stdout (debug only).
fun serialization_hash: Int

core :: Object :: serialization_hash

Hash value use for serialization
intern fun sys: Sys

core :: Object :: sys

Return the global sys object, the only instance of the Sys class.
abstract fun to_jvalue(env: JniEnv): JValue

core :: Object :: to_jvalue

fun to_s: String

core :: Object :: to_s

User readable representation of self.
package_diagram nitc::NitniCallback NitniCallback core::Object Object nitc::NitniCallback->core::Object nitc::MType MType nitc::MType->nitc::NitniCallback nitc::MExplicitCall MExplicitCall nitc::MExplicitCall->nitc::NitniCallback nitc::MExplicitSuper MExplicitSuper nitc::MExplicitSuper->nitc::NitniCallback nitc::MExplicitCast MExplicitCast nitc::MExplicitCast->nitc::NitniCallback nitc::MClassType MClassType nitc::MClassType->nitc::MType nitc::MFormalType MFormalType nitc::MFormalType->nitc::MType nitc::MProxyType MProxyType nitc::MProxyType->nitc::MType nitc::MNullType MNullType nitc::MNullType->nitc::MType nitc::MBottomType MBottomType nitc::MBottomType->nitc::MType nitc::MErrorType MErrorType nitc::MErrorType->nitc::MType nitc::MSignature MSignature nitc::MSignature->nitc::MType nitc::MInitType MInitType nitc::MInitType->nitc::MType nitc::MRawType MRawType nitc::MRawType->nitc::MType nitc::MClassType... ... nitc::MClassType...->nitc::MClassType nitc::MFormalType... ... nitc::MFormalType...->nitc::MFormalType nitc::MProxyType... ... nitc::MProxyType...->nitc::MProxyType nitc::MNullType... ... nitc::MNullType...->nitc::MNullType nitc::MBottomType... ... nitc::MBottomType...->nitc::MBottomType nitc::MErrorType... ... nitc::MErrorType...->nitc::MErrorType nitc::MSignature... ... nitc::MSignature...->nitc::MSignature nitc::MInitType... ... nitc::MInitType...->nitc::MInitType nitc::MRawType... ... nitc::MRawType...->nitc::MRawType

Parents

interface Object

core :: Object

The root of the class hierarchy.

Children

class MExplicitCall

nitc :: MExplicitCall

A prossible call from C, declared explictly after the import keyword
abstract class MType

nitc :: MType

A global static type

Descendants

class MBottomType

nitc :: MBottomType

The special universal most specific type.
class MClassType

nitc :: MClassType

A type based on a class.
class MErrorType

nitc :: MErrorType

A special type used as a silent error marker when building types.
abstract class MFormalType

nitc :: MFormalType

A formal type (either virtual of parametric).
class MGenericType

nitc :: MGenericType

A type based on a generic class.
class MInitType

nitc :: MInitType

Is the type of the initial value inside attributes
class MNotNullType

nitc :: MNotNullType

A non-null version of a formal type.
class MNullType

nitc :: MNullType

The type of the only value null
class MNullableType

nitc :: MNullableType

A type prefixed with "nullable"
class MParameterType

nitc :: MParameterType

The type associated to a formal parameter generic type of a class
abstract class MProxyType

nitc :: MProxyType

A type that decorates another type.
class MRawType

nitc :: MRawType

A type described by a text annoted with links.
class MSignature

nitc :: MSignature

A signature of a method
class MVirtualType

nitc :: MVirtualType

A virtual formal type.

Class definitions

nitc $ NitniCallback
# Classification for all nitni callbacks
interface NitniCallback
end
src/nitni/nitni_callbacks.nit:156,1--158,3

nitc :: c $ NitniCallback
redef class NitniCallback
	fun compile_callback_to_c(mmodule: MModule, ffi_ccu: CCompilationUnit) do end
end
src/ffi/c.nit:30,1--32,3

nitc :: cpp $ NitniCallback
redef class NitniCallback
	fun compile_callback_to_cpp(mmodule: MModule, mainmodule: MModule) do end
end
src/ffi/cpp.nit:194,1--196,3

nitc :: objc $ NitniCallback
redef class NitniCallback
	# Compile this callback to be callable from Objective-C
	fun compile_callback_to_objc(mmodule: MModule, mainmodule: MModule) do end
end
src/ffi/objc.nit:185,1--188,3

nitc :: java $ NitniCallback
redef class NitniCallback
	# Compile C and Java code to implement this callback
	fun compile_callback_to_java(mmodule: MModule, mainmodule: MModule, ccu: CCompilationUnit) do end

	# Returns the list of C functions to link with extern Java methods, as required
	# to enable this callback from Java code.
	#
	# Return used by `MModule::ensure_linking_callback_methods`
	#
	# TODO we return an Array to support cast and other features like that
	fun jni_methods_declaration(from_module: MModule): Array[String] do return new Array[String]
end
src/ffi/java.nit:500,1--511,3