This class represents the GLib Runtime type identification and management
system. It provides the facilities for registering and managing all
fundamental data types. It should be for internal use only and not be exposed
outside of the library.
BOOLEAN
public static final Type BOOLEAN()
Return a Type instance initialized as BOOLEAN.
BOXED
public static final Type BOXED()
Return a Type instance initialized as BOXED.
CHAR
public static final Type CHAR()
Return a Type instance initialized as CHAR.
DOUBLE
public static final Type DOUBLE()
Return a Type instance initialized as DOUBLE.
FLAGS
public static final Type FLAGS()
Return a Type instance initialized as FLAGS.
FLOAT
public static final Type FLOAT()
Return a Type instance initialized as FLOAT.
INT
public static final Type INT()
Return a Type instance initialized as INT.
INTERFACE
public static final Type INTERFACE()
Return a Type instance initialized as INTERFACE.
INVALID
public static final Type INVALID()
Return a Type instance initialized as INVALID.
JAVA_OBJECT
public static final Type JAVA_OBJECT()
Return a Type instance initialized as JAVA_OBJECT.
LONG
public static final Type LONG()
Return a Type instance initialized as LONG.
NONE
public static final Type NONE()
Return a Type instance initialized as NONE.
OBJECT
public static final Type OBJECT()
Return a Type instance initialized as OBJECT.
PARAM
public static final Type PARAM()
Return a Type instance initialized as PARAM.
STRING
public static final Type STRING()
Return a Type instance initialized as STRING.
g_type_depth
protected static final int g_type_depth(int type)
g_type_from_name
protected static final int g_type_from_name(String name)
g_type_init
protected static final void g_type_init()
BEGINNING OF JNI CODE
g_type_is_a
protected static final boolean g_type_is_a(int type,
int type_is_a)
g_type_name
protected static final String g_type_name(int type)
g_type_parent
protected static final int g_type_parent(int type)
g_type_qname
protected static final int g_type_qname(int type)
getTypeHandle
public int getTypeHandle()
Returns the unique identifyer used to identify a type in the native
libraries.
get_BOOLEAN
protected static final int get_BOOLEAN()
get_BOXED
protected static final int get_BOXED()
get_CHAR
protected static final int get_CHAR()
get_DOUBLE
protected static final int get_DOUBLE()
get_FLAGS
protected static final int get_FLAGS()
get_FLOAT
protected static final int get_FLOAT()
get_INT
protected static final int get_INT()
get_INTERFACE
protected static final int get_INTERFACE()
get_INVALID
protected static final int get_INVALID()
get_JAVA_OBJECT
protected static final int get_JAVA_OBJECT()
NATIVE METHODS - represent macros in the libs
get_LONG
protected static final int get_LONG()
get_NONE
protected static final int get_NONE()
get_OBJECT
protected static final int get_OBJECT()
get_PARAM
protected static final int get_PARAM()
get_POINTER
protected static final int get_POINTER()
get_STRING
protected static final int get_STRING()
typeEquals
public boolean typeEquals(Type aType)
Compares a Type with the current object.
typeIsA
public boolean typeIsA(Type aType)
Determine if the Type parameter is a derivable type, checking
whether this Type object is a descendant of the Type
parameter. If the Type parameter is an interface, check
whether this Type object conforms to it.
aType
- the Type to compare this Type with.
true
if this type is equal or descendant of
aType
, false
otherwise.