android $ Android_app_Fragment :: SELF
Type of this instance, automatically specialized in every classandroid $ Android_app_Fragment :: new_global_ref
Returns a global reference to the Java object behind this referenceandroid $ Android_app_Fragment :: pop_from_local_frame_with_env
Java implementation ofpop_from_local_frame
core :: Pointer :: address_is_null
Is the address behind this Object at NULL?core :: Object :: class_factory
Implementation used byget_class
to create the specific class.
jvm :: JavaObject :: defaultinit
core :: Object :: defaultinit
core :: Pointer :: defaultinit
core :: Object :: is_same_instance
Return true ifself
and other
are the same instance (i.e. same identity).
core :: Object :: is_same_serialized
Isself
the same as other
in a serialization context?
core :: Object :: is_same_type
Return true ifself
and other
have the same dynamic type.
jvm :: JavaObject :: new_global_ref
Returns a global reference to the Java object behind this referencecore :: Object :: output_class_name
Display class name on stdout (debug only).jvm :: JavaObject :: pop_from_local_frame
Pops the current local reference frame and return a valid reference to selfjvm :: JavaObject :: pop_from_local_frame_with_env
Java implementation ofpop_from_local_frame
jvm :: JavaObject :: to_java_string
JavaString
representation of self
using Java's toString
# Java class: android.app.Fragment
extern class Android_app_Fragment in "Java" `{ android.app.Fragment `}
super JavaObject
redef fun new_global_ref import sys, Sys.jni_env `{
Sys sys = Android_app_Fragment_sys(self);
JNIEnv *env = Sys_jni_env(sys);
return (*env)->NewGlobalRef(env, self);
`}
redef fun pop_from_local_frame_with_env(jni_env) `{
return (*jni_env)->PopLocalFrame(jni_env, self);
`}
end
lib/android/ui/native_ui.nit:453,1--466,3
redef class Android_app_Fragment
private new (nit_window: Window)
import Window.on_create_fragment in "Java" `{
final nit.app.NitObject final_nit_window = nit_window;
Window_incr_ref(nit_window);
return new android.app.Fragment(){
@Override
public android.view.View onCreateView(android.view.LayoutInflater inflater,
android.view.ViewGroup container, android.os.Bundle state) {
return Window_on_create_fragment(final_nit_window);
}
};
`}
end
lib/android/ui/ui.nit:349,1--364,3