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
    • isSignalType

      public static boolean isSignalType(Class<?> cl)
      Returns true if the class cl represents a Signal.
      Parameters:
      cl - The class to check
      Returns:
      True if the class is a signal
    • 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)
    • connectSlotsByName

      public static void connectSlotsByName(QObject object)
    • 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.
    • 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)
    • 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)
    • isAvailableQtLibrary

      public static boolean isAvailableQtLibrary(String library)
    • isAvailableLibrary

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

      public static void loadQtLibrary(String library)
    • loadUtilityLibrary

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

      public static void loadLibrary(String lib)
    • jambiTempDir

      public static File jambiTempDir()
    • 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()
    • createMetaType

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