org.gnu.glib

Class Type

public class Type extends Object

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.
Constructor Summary
Type(int handle)
Construct a new Type from a integer that represents the type.
Type(String name)
Construct a Type by its' name.
Method Summary
static TypeBOOLEAN()
Return a Type instance initialized as BOOLEAN.
static TypeBOXED()
Return a Type instance initialized as BOXED.
static TypeCHAR()
Return a Type instance initialized as CHAR.
static TypeDOUBLE()
Return a Type instance initialized as DOUBLE.
static TypeFLAGS()
Return a Type instance initialized as FLAGS.
static TypeFLOAT()
Return a Type instance initialized as FLOAT.
intgetTypeHandle()
Returns the unique identifyer used to identify a type in the native libraries.
static TypeINT()
Return a Type instance initialized as INT.
static TypeINTERFACE()
Return a Type instance initialized as INTERFACE.
static TypeINVALID()
Return a Type instance initialized as INVALID.
static TypeJAVA_OBJECT()
Return a Type instance initialized as JAVA_OBJECT.
static TypeLONG()
Return a Type instance initialized as LONG.
static TypeNONE()
Return a Type instance initialized as NONE.
static TypeOBJECT()
Return a Type instance initialized as OBJECT.
static TypePARAM()
Return a Type instance initialized as PARAM.
static TypePIXBUF()
Return a Type instance initialized as PIXBUF.
static TypeSTRING()
Return a Type instance initialized as STRING.
booleantypeEquals(Type aType)
Compares a Type with the current object.
booleantypeIsA(Type aType)
Determine if the Type parameter is a derivable type, checking whether this Type object is a descendant of the Type parameter.

Constructor Detail

Type

public Type(int handle)
Construct a new Type from a integer that represents the type.

Type

public Type(String name)
Construct a Type by its' name.

Method Detail

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.

getTypeHandle

public int getTypeHandle()
Returns the unique identifyer used to identify a type in the native libraries.

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.

See Also: Type

PARAM

public static final Type PARAM()
Return a Type instance initialized as PARAM.

PIXBUF

public static final Type PIXBUF()

Deprecated: As of libgtk-java 2.8.5, this method has been replaced by {@link Pixbuf#getType()}. Future major version releases will have this method removed, please use with caution.

Return a Type instance initialized as PIXBUF.

STRING

public static final Type STRING()
Return a Type instance initialized as 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.

Parameters: aType the Type to compare this Type with.

Returns: true if this type is equal or descendant of aType, false otherwise.