Module qtjambi

Class QtJambiInternal

java.lang.Object
io.qt.internal.QtJambiInternal

public final class QtJambiInternal extends Object
  • Field Details

  • Method Details

    • serializeLambdaExpression

      public static SerializedLambda serializeLambdaExpression(Serializable slotObject)
    • getConstructorHandle

      public static MethodHandle getConstructorHandle(Constructor<?> constructor) throws IllegalAccessException
      Throws:
      IllegalAccessException
    • getMethodHandle

      public static MethodHandle getMethodHandle(Method method) throws IllegalAccessException
      Throws:
      IllegalAccessException
    • invokeMethod

      public static Object invokeMethod(Method method, Object object, Object... args) throws Throwable
      Throws:
      Throwable
    • invokeInterfaceDefaultMethod

      public static Object invokeInterfaceDefaultMethod(Method method, Object object, Object... args) throws Throwable
      Throws:
      Throwable
    • setField

      public static void setField(Object owner, Class<?> declaringClass, String fieldName, Object newValue)
    • fetchField

      public static <V> V fetchField(Object owner, Class<?> declaringClass, String fieldName, Class<V> fieldType)
    • findGeneratedSuperclass

      public static Class<?> findGeneratedSuperclass(Class<?> clazz)
      Returns the closest superclass of obj's class which is a generated class, or null if no such class is found.
    • registerDataStreamOperators

      public static <T> void registerDataStreamOperators(int metaType, Class<?> classType, BiConsumer<QDataStream,T> datastreamInFn, Function<QDataStream,T> datastreamOutFn)
    • registerDebugStreamOperator

      public static <T> void registerDebugStreamOperator(int metaType, Class<?> classType, BiConsumer<QDebug,T> debugstreamFn)
    • synchronizedNativeId

      public static QtJambiInternal.Monitor synchronizedNativeId(QtObjectInterface object)
    • ownership

      public static QtJambiInternal.Ownership ownership(QtObject object)
    • ownership

      public static QtJambiInternal.Ownership ownership(QtObjectInterface object)
    • getSignalOnDispose

      public static QMetaObject.DisposedSignal getSignalOnDispose(QtObjectInterface object, boolean forceCreation)
      Emitted either as the native resources that belong to the object are being cleaned up or directly before the object is finalized. Connect to this signal to do clean up when the object is destroyed. The signal will never be emitted more than once per object, and the object is guaranteed to be unusable after this signal has returned.
    • getSignalOnDispose

      public static QMetaObject.DisposedSignal getSignalOnDispose(QtJambiObject object, boolean forceCreation)
    • findSignal

      public static QMetaObject.AbstractSignal findSignal(QtSignalEmitterInterface sender, String name, Class<?>... types)
    • initializePackage

      public static boolean initializePackage(ClassLoader classLoader, Package pkg)
    • initializePackage

      public static boolean initializePackage(Class<?> cls)
    • initializePackage

      public static boolean initializePackage(ClassLoader classLoader, String packagePath)
    • lamdaInfo

      public static QtJambiInternal.LambdaInfo lamdaInfo(Serializable slotObject)
    • disposeObject

      public static void disposeObject(QtObjectInterface object)
    • isObjectDisposed

      public static boolean isObjectDisposed(QtObjectInterface object)
    • tryIsObjectDisposed

      public static boolean tryIsObjectDisposed(QtObjectInterface object)
    • disposeObject

      public static void disposeObject(QtJambiObject object)
    • isObjectDisposed

      public static boolean isObjectDisposed(QtJambiObject object)
    • areObjectsEquals

      public static Boolean areObjectsEquals(QtJambiObject object, Object other)
    • internalNameOfArgumentType

      public static String internalNameOfArgumentType(Class<? extends Object> cls)
    • registerMetaType

      public static int registerMetaType(Class<?> clazz)
    • registerMetaType

      public static int registerMetaType(Class<?> clazz, int[] instantiations)
    • findMetaType

      public static int findMetaType(String name)
    • registerMetaType

      public static int registerMetaType(Class<?> clazz, Type genericType, AnnotatedType annotatedType, boolean isPointer, boolean isReference)
    • metaTypeId

      public static int metaTypeId(Class<?> clazz)
    • javaTypeForMetaTypeId

      public static Class<?> javaTypeForMetaTypeId(int metaTypeId)
    • objectMetaTypeId

      public static int objectMetaTypeId(Object o)
    • nextMetaTypeId

      public static int nextMetaTypeId(Class<?> clazz)
    • isDebugBuild

      public static boolean isDebugBuild()
    • processName

      public static String processName()
    • initializeNativeObject

      public static void initializeNativeObject(QtObjectInterface object, Map<Class<?>,List<?>> arguments) throws IllegalArgumentException
      Throws:
      IllegalArgumentException
    • isSharedPointer

      public static boolean isSharedPointer(QtObjectInterface object)
    • getFactoryClass

      public static <T> Class<T> getFactoryClass(QMetaObject.Method1<T,?> method)
    • getFactoryClass

      public static <T> Class<T> getFactoryClass(QMetaObject.Method2<T,?,?> method)
    • getFactoryClass

      public static <T> Class<T> getFactoryClass(QMetaObject.Method3<T,?,?,?> method)
    • getFactoryClass

      public static <T> Class<T> getFactoryClass(QMetaObject.Method4<T,?,?,?,?> method)
    • getFactoryClass

      public static <T> Class<T> getFactoryClass(QMetaObject.Method5<T,?,?,?,?,?> method)
    • getFactoryClass

      public static <T> Class<T> getFactoryClass(QMetaObject.Method6<T,?,?,?,?,?,?> method)
    • getFactoryClass

      public static <T> Class<T> getFactoryClass(QMetaObject.Method7<T,?,?,?,?,?,?,?> method)
    • getFactoryClass

      public static <T> Class<T> getFactoryClass(QMetaObject.Method8<T,?,?,?,?,?,?,?,?> method)
    • getFactoryClass

      public static <T> Class<T> getFactoryClass(QMetaObject.Method9<T,?,?,?,?,?,?,?,?,?> method)
    • getReturnType

      public static <R> Class<R> getReturnType(QMetaObject.Method1<?,R> method)
    • callerClassProvider

      public static Supplier<Class<?>> callerClassProvider()
    • cppNormalizedSignature

      public static String cppNormalizedSignature(String signalName, Class<?> classType)
    • isAvailableQtLibrary

      public static boolean isAvailableQtLibrary(Class<?> callerClass, String library)
    • isAvailableLibrary

      public static boolean isAvailableLibrary(String library, String version)
    • loadQtLibrary

      public static void loadQtLibrary(Class<?> callerClass, String library)
    • loadUtilityLibrary

      public static void loadUtilityLibrary(String library, String version)
    • loadLibrary

      public static void loadLibrary(String lib)
    • jambiDeploymentDir

      public static File jambiDeploymentDir()
    • loadQtJambiLibrary

      public static void loadQtJambiLibrary(Class<?> callerClass, String library)
    • loadJambiLibrary

      public static void loadJambiLibrary(Class<?> callerClass, String library)
    • majorVersion

      public static int majorVersion()
    • minorVersion

      public static int minorVersion()
    • qtjambiPatchVersion

      public static int qtjambiPatchVersion()
    • qtJambiLibraryPath

      public static String qtJambiLibraryPath()
    • qtLibraryPath

      public static String qtLibraryPath()
    • createMetaType

      public static Object createMetaType(int id, Class<?> javaType, Object copy)