java.lang.Object
io.qt.QtObject
io.qt.core.QMetaType
- All Implemented Interfaces:
QtObjectInterface,Cloneable
Manages named types in the meta-object system
Java wrapper for Qt's class QMetaType
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceConvert value of T1 into T2static interfaceWrites a value to data stream.static interfaceReads a value from data stream.static interfaceWrites a value to debug stream.static final classThis class represents a QMetaType-registered but Java-unknown 8 Bit enumerator.static final classThis class represents a QMetaType-registered but Java-unknown 32 Bit enumerator.static final classThis class represents a QMetaType-registered but Java-unknown enumerator type which can be used in QFlags.static final classThis class represents a QMetaType-registered but Java-unknown QFlags type.static final classThis class represents a QMetaType-registered but Java-unknown gadget type.static final classThis class represents a QMetaType-registered but Java-unknown 64 Bit enumerator.static final classThis class represents a QMetaType-registered but Java-unknown object type.static final classThis class represents a QMetaType-registered but Java-unknown 16 Bit enumerator.static interfaceInterface super type for all generic classes representing a QMetaType-registered but Java-unknown value type.static final classThis class represents a QMetaType-registered but Java-unknown value type.static enumJava wrapper for Qt enum QMetaType::Typestatic enumJava wrapper for Qt enum QMetaType::TypeFlagstatic final classQFlags type for enumQMetaType.TypeFlagNested classes/interfaces inherited from class io.qt.QtObject
QtObject.QPrivateConstructor -
Constructor Summary
ConstructorsModifierConstructorDescriptionQMetaType(int type) QMetaType(QMetaType.Type type) Overloaded constructor forQMetaType(int).protectedConstructor for internal use only. -
Method Summary
Modifier and TypeMethodDescriptionfinal longalignOf()static booleancanConvert(QMetaType fromType, QMetaType toType) clone()final intstatic OptionalIntDeprecated.Deprecated.final Objectcreate()Overloaded function forcreate(java.lang.Object)withcopy = null.static Objectcreate(int type) Deprecated.static ObjectDeprecated.final Objectfinal booleandebugStream(QDebug dbg, Object rhs) static booleandebugStream(QDebug dbg, Object rhs, int typeId) Deprecated.booleanUsed to check if this object shares the same native counterpart with the other object, i.e. the objects are equals if their native counterparts are identical.final booleanstatic OptionalIntDeprecated.final QMetaType.TypeFlagsflags()static QMetaTypefromName(byte[] name) static QMetaTypefromName(QByteArray name) static QMetaTypefromName(QByteArrayView name) static QMetaTypestatic QMetaTypefromObject(Object obj) static QMetaTypeinthashCode()static booleanhasRegisteredConverterFunction(QMetaType fromType, QMetaType toType) final booleanfinal booleanstatic booleanhasRegisteredDebugStreamOperator(int typeId) Deprecated.final intid()Overloaded function forid(int)witharg__1 = 0.final intid(int arg__1) final booleanfinal booleanfinal booleanstatic booleanisRegistered(int type) final booleanisValid()final Class<?>javaType()Returns the Java class for this meta type.static Class<?>javaType(int metaTypeId) Returns the Java class for the given meta type ID.load(QDataStream stream) load(QDataStream stream, int type) Deprecated.final QMetaObjectstatic QMetaObjectmetaObjectForType(int type) Deprecated.static intmetaTypeId(Class<?> clazz, QMetaType... instantiations) Deprecated.final Stringname()static intqMetaTypeId(Class<?> clazz, QMetaType... instantiations) static intqRegisterMetaType(Class<?> clazz, QMetaType... instantiations) static <T1,T2> boolean registerConverter(QMetaType.ConverterFn<T1, T2> converterFn) Registers debug stream operator for meta typeT.static <T> intregisterDataStreamOperators(QMetaType.DataStreamInFn<T> datastreamInFn, QMetaType.DataStreamOutFn<T> datastreamOutFn) Registers datastream operators for meta typeT.static <T> intregisterDebugStreamOperator(QMetaType.DebugStreamFn<T> debugstreamFn) Registers debug stream operator for meta typeT.static intregisterMetaType(Class<?> clazz, QMetaType... instantiations) Deprecated.UseqRegisterMetaType(Class, QMetaType...)instead.static booleansave(QDataStream stream, int type, Object data) Deprecated.final booleansave(QDataStream stream, Object data) final longsizeOf()static intsizeOf(int type) Deprecated.final StringtoString()Returns the type name associated with thisQMetaTypeasString.static inttype(QByteArray typeName) Deprecated.static intDeprecated.static QMetaType.TypeFlagstypeFlags(int type) Deprecated.static StringtypeName(int type) Deprecated.static voidunregisterConverterFunction(QMetaType from, QMetaType to) static voidunregisterMetaType(QMetaType type) Methods inherited from class io.qt.QtObject
dispose, isDisposed
-
Constructor Details
-
QMetaType
public QMetaType() -
QMetaType
public QMetaType(int type) -
QMetaType
Constructor for internal use only.- Parameters:
p- expected to benull.
-
QMetaType
Overloaded constructor forQMetaType(int).- Parameters:
type-
-
-
Method Details
-
alignOf
-
compare
-
create
Overloaded function for
create(java.lang.Object)withcopy = null. -
create
-
debugStream
-
equals
-
flags
-
hasRegisteredDataStreamOperators
-
hasRegisteredDebugStreamOperator
-
id
Overloaded function for
id(int)witharg__1 = 0. -
id
-
isEqualityComparable
-
isOrdered
-
isRegistered
-
isValid
-
load
-
metaObject
-
name
-
save
-
sizeOf
-
canConvert
-
compare
Deprecated. -
convert
-
convert
Deprecated. -
create
Deprecated.Overloaded function for
create(int, java.lang.Object)withcopy = null. -
create
Deprecated. -
debugStream
Deprecated. -
equals
Deprecated. -
fromName
-
fromType
-
hasRegisteredConverterFunction
-
hasRegisteredDebugStreamOperator
Deprecated. -
isRegistered
public static boolean isRegistered(int type) -
load
Deprecated. -
metaObjectForType
Deprecated. -
qMetaTypeId
-
qRegisterMetaType
-
save
Deprecated. -
sizeOf
Deprecated. -
type
Deprecated. -
type
Deprecated. -
typeFlags
Deprecated. -
typeName
Deprecated. -
unregisterConverterFunction
-
unregisterMetaType
-
equals
Description copied from class:QtObjectUsed to check if this object shares the same native counterpart with the other object, i.e. the objects are equals if their native counterparts are identical. Qt value types override this method to make a value comparison. Otherwise it will return the result of calling the super class implementation. -
hashCode
-
toString
Returns the type name associated with thisQMetaTypeasString. -
registerMetaType
Deprecated.UseqRegisterMetaType(Class, QMetaType...)instead. -
metaTypeId
Deprecated.UseqMetaTypeId(Class, QMetaType...)instead. -
registerDataStreamOperators
public static <T> int registerDataStreamOperators(QMetaType.DataStreamInFn<T> datastreamInFn, QMetaType.DataStreamOutFn<T> datastreamOutFn) Registers datastream operators for meta typeT.- Parameters:
datastreamInFn- (only lambda expressions allowed)datastreamOutFn- (only lambda expressions allowed)- Returns:
- the registered meta type
-
registerDebugStreamOperator
Registers debug stream operator for meta typeT.- Parameters:
debugstreamFn- (only lambda expressions allowed)- Returns:
- the registered meta type
-
registerConverter
Registers debug stream operator for meta typeT.- Parameters:
debugstreamFn- (only lambda expressions allowed)- Returns:
- the registered meta type
-
javaType
Returns the Java class for this meta type.- Returns:
- java class
-
javaType
Returns the Java class for the given meta type ID.- Returns:
- java class
-
fromObject
-
fromName
-
fromName
-
fromName
-
clone
-
qMetaTypeId(Class, QMetaType...)instead.