io.qt.core.QMetaMethod Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.core;
import io.qt.*;
/**
* Meta-data about a member function
* Java wrapper for Qt class QMetaMethod
*/
public class QMetaMethod extends QtObject
implements java.lang.Cloneable
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* Java wrapper for Qt enum QMetaMethod::Access
*/
public enum Access implements QtEnumerator {
/**
* Representing QMetaMethod:: Private
*/
Private(0),
/**
* Representing QMetaMethod:: Protected
*/
Protected(1),
/**
* Representing QMetaMethod:: Public
*/
Public(2);
static {
QtJambi_LibraryUtilities.initialize();
}
private Access(int value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
@Override
public int value() {
return value;
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
*/
public static @NonNull Access resolve(int value) {
switch (value) {
case 0: return Private;
case 1: return Protected;
case 2: return Public;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* Java wrapper for Qt enum QMetaMethod::Attributes
*/
public enum Attributes implements QtEnumerator {
/**
* Representing QMetaMethod:: Compatibility
*/
Compatibility(1),
/**
* Representing QMetaMethod:: Cloned
*/
Cloned(2),
/**
* Representing QMetaMethod:: Scriptable
*/
Scriptable(4);
static {
QtJambi_LibraryUtilities.initialize();
}
private Attributes(int value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
@Override
public int value() {
return value;
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
*/
public static @NonNull Attributes resolve(int value) {
switch (value) {
case 1: return Compatibility;
case 2: return Cloned;
case 4: return Scriptable;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* Java wrapper for Qt enum QMetaMethod::MethodType
*/
public enum MethodType implements QtEnumerator {
/**
* Representing QMetaMethod:: Method
*/
Method(0),
/**
* Representing QMetaMethod:: Signal
*/
Signal(1),
/**
* Representing QMetaMethod:: Slot
*/
Slot(2),
/**
* Representing QMetaMethod:: Constructor
*/
Constructor(3);
static {
QtJambi_LibraryUtilities.initialize();
}
private MethodType(int value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
@Override
public int value() {
return value;
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
*/
public static @NonNull MethodType resolve(int value) {
switch (value) {
case 0: return Method;
case 1: return Signal;
case 2: return Slot;
case 3: return Constructor;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* See QMetaMethod:: QMetaMethod()
*/
public QMetaMethod(){
super((QPrivateConstructor)null);
initialize_native(this);
}
private native static void initialize_native(QMetaMethod instance);
/**
* See QMetaMethod:: QMetaMethod(QMetaMethod)
*/
public QMetaMethod(io.qt.core.@NonNull QMetaMethod other){
super((QPrivateConstructor)null);
initialize_native(this, other);
}
private native static void initialize_native(QMetaMethod instance, io.qt.core.QMetaMethod other);
/**
* See QMetaMethod:: access()const
*/
@QtUninvokable
public final io.qt.core.QMetaMethod.@NonNull Access access(){
return io.qt.core.QMetaMethod.Access.resolve(access_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int access_native_constfct(long __this__nativeId);
/**
* See QMetaMethod:: attributes()const
*/
@QtUninvokable
public final int attributes(){
return attributes_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int attributes_native_constfct(long __this__nativeId);
/**
* See QMetaMethod:: enclosingMetaObject()const
*/
@QtUninvokable
public final io.qt.core.@Nullable QMetaObject enclosingMetaObject(){
return enclosingMetaObject_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QMetaObject enclosingMetaObject_native_constfct(long __this__nativeId);
/**
* See QMetaMethod:: isConst()const
* This function was introduced in Qt 6.2.
*/
@QtUninvokable
public final boolean isConst(){
return isConst_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isConst_native_constfct(long __this__nativeId);
/**
* See QMetaMethod:: isValid()const
*/
@QtUninvokable
public final boolean isValid(){
return isValid_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isValid_native_constfct(long __this__nativeId);
/**
* See QMetaMethod:: methodIndex()const
*/
@QtUninvokable
public final int methodIndex(){
return methodIndex_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int methodIndex_native_constfct(long __this__nativeId);
/**
* See QMetaMethod:: methodSignature()const
*/
@QtUninvokable
public final io.qt.core.@NonNull QByteArray cppMethodSignature(){
return cppMethodSignature_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QByteArray cppMethodSignature_native_constfct(long __this__nativeId);
/**
* See QMetaMethod:: methodType()const
*/
@QtUninvokable
public final io.qt.core.QMetaMethod.@NonNull MethodType methodType(){
return io.qt.core.QMetaMethod.MethodType.resolve(methodType_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int methodType_native_constfct(long __this__nativeId);
/**
*
*/
@QtUninvokable
public final io.qt.core.@NonNull QByteArray name(){
return name_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QByteArray name_native_constfct(long __this__nativeId);
/**
* See operator==(QMetaMethod, QMetaMethod)
*/
@QtUninvokable
public final boolean equals(io.qt.core.@NonNull QMetaMethod m2){
return equals_native_cref_QMetaMethod(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(m2));
}
@QtUninvokable
private native boolean equals_native_cref_QMetaMethod(long __this__nativeId, long m2);
/**
* See QMetaMethod:: parameterCount()const
*/
@QtUninvokable
public final int parameterCount(){
return parameterCount_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int parameterCount_native_constfct(long __this__nativeId);
/**
* See QMetaMethod:: parameterMetaType(int)const
* This function was introduced in Qt 6.0.
*/
@QtUninvokable
public final io.qt.core.@NonNull QMetaType parameterMetaType(int index){
return parameterMetaType_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), index);
}
@QtUninvokable
private native io.qt.core.QMetaType parameterMetaType_native_int_constfct(long __this__nativeId, int index);
/**
* See QMetaMethod:: parameterNames()const
*/
@QtUninvokable
public final io.qt.core.@NonNull QList parameterNames(){
return parameterNames_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QList parameterNames_native_constfct(long __this__nativeId);
/**
* See QMetaMethod:: parameterType(int)const
*/
@QtUninvokable
public final int parameterType(int index){
return parameterType_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), index);
}
@QtUninvokable
private native int parameterType_native_int_constfct(long __this__nativeId, int index);
/**
* See QMetaMethod:: parameterTypeName(int)const
* This function was introduced in Qt 6.0.
*/
@QtUninvokable
public final io.qt.core.@NonNull QByteArray parameterTypeName(int index){
return parameterTypeName_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), index);
}
@QtUninvokable
private native io.qt.core.QByteArray parameterTypeName_native_int_constfct(long __this__nativeId, int index);
/**
* See QMetaMethod:: parameterTypes()const
*/
@QtUninvokable
public final io.qt.core.@NonNull QList parameterTypes(){
return parameterTypes_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QList parameterTypes_native_constfct(long __this__nativeId);
/**
* See QMetaMethod:: relativeMethodIndex()const
* This function was introduced in Qt 6.0.
*/
@QtUninvokable
public final int relativeMethodIndex(){
return relativeMethodIndex_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int relativeMethodIndex_native_constfct(long __this__nativeId);
/**
* See QMetaMethod:: returnMetaType()const
* This function was introduced in Qt 6.0.
*/
@QtUninvokable
public final io.qt.core.@NonNull QMetaType returnMetaType(){
return returnMetaType_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QMetaType returnMetaType_native_constfct(long __this__nativeId);
/**
* See QMetaMethod:: returnType()const
*/
@QtUninvokable
public final int returnType(){
return returnType_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int returnType_native_constfct(long __this__nativeId);
/**
* See QMetaMethod:: revision()const
*/
@QtUninvokable
public final int revision(){
return revision_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int revision_native_constfct(long __this__nativeId);
/**
*
*/
@QtUninvokable
public final java.lang.@Nullable String tag(){
return tag_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native java.lang.String tag_native_constfct(long __this__nativeId);
/**
* See QMetaMethod:: typeName()const
*/
@QtUninvokable
public final java.lang.@Nullable String typeName(){
return typeName_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native java.lang.String typeName_native_constfct(long __this__nativeId);
/**
* See QMetaMethod:: mobj
*/
@QtUninvokable
protected final void setMobj(io.qt.core.@Nullable QMetaObject mobj){
setMobj_native_const_QMetaObject_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), mobj);
}
@QtUninvokable
private native void setMobj_native_const_QMetaObject_ptr(long __this__nativeId, io.qt.core.QMetaObject mobj);
/**
* See QMetaMethod:: mobj
*/
@QtUninvokable
protected final io.qt.core.@Nullable QMetaObject mobj(){
return mobj_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QMetaObject mobj_native(long __this__nativeId);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QMetaMethod(QPrivateConstructor p) { super(p); }
/**
* See operator==(QMetaMethod, QMetaMethod)
*/
@Override
@QtUninvokable
public boolean equals(Object other) {
if (other==null || other instanceof io.qt.core.QMetaMethod) {
return equals((io.qt.core.QMetaMethod) other);
}
return false;
}
/**
* Returns the objects's hash code computed by qHash(QMetaMethod)
.
*/
@QtUninvokable
@Override
public int hashCode() {
return hashCode_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native static int hashCode_native(long __this_nativeId);
private Class> returnClassType;
private java.util.List> parameterClassTypes;
/**
* See QMetaMethod::parameterTypes() const
*/
@QtUninvokable
public final java.util.@NonNull List<@Nullable Class>> parameterClassTypes() {
if(parameterClassTypes==null) {
parameterClassTypes = java.util.Collections.unmodifiableList(parameterClassTypes_native());
}
return parameterClassTypes;
}
@QtUninvokable
private native final java.util.List> parameterClassTypes_native();
/**
* See QMetaMethod::parameterType(int index) const
*/
@QtUninvokable
public final @Nullable Class> parameterClassType(int index) {
return parameterClassTypes().get(index);
}
/**
* See QMetaMethod::returnType() const
*/
@QtUninvokable
public final @Nullable Class> returnClassType(){
if(returnClassType==null)
returnClassType = returnClassType_native();
return returnClassType;
}
@QtUninvokable
private native final Class> returnClassType_native();
/**
* See QMetaMethod::methodSignature() const
*/
@QtUninvokable
public final @NonNull String methodSignature() {
if(!isValid())
return "";
StringBuilder args = new StringBuilder();
java.util.List> parameterClassTypes = parameterClassTypes();
for(int i=0; i parameterType = parameterClassTypes.get(i);
if(parameterType!=null){
if(parameterType.isArray()) {
int arrayDepth = 1;
Class> componentType = parameterType.getComponentType();
while(true) {
if(componentType.isArray()) {
++arrayDepth;
componentType = componentType.getComponentType();
}else {
args.append(componentType.getName());
for (int j = 0; j < arrayDepth; j++) {
args.append("[]");
}
break;
}
}
}else {
args.append(parameterType.getName());
}
}else {
args.append("");
}
}
return String.format("%1$s(%2$s)", name(), args);
}
/**
* Returns the string representation of the QMetaMethod
.
* @see #methodSignature()
*/
@Override
@QtUninvokable
public final @NonNull String toString() {
return methodSignature();
}
/**
*
*/
@QtUninvokable
public final @Nullable Object invoke(@NonNull QObject object, @Nullable Object... args) throws IllegalArgumentException, QUnsuccessfulInvocationException {
return invoke(object, Qt.ConnectionType.AutoConnection, args);
}
/**
*
*/
@QtUninvokable
public final @Nullable Object invoke(@NonNull QObject object, Qt.@NonNull ConnectionType connection, @Nullable Object @NonNull... args) throws IllegalArgumentException, QUnsuccessfulInvocationException {
if(!isValid())
throw new QUnsuccessfulInvocationException("Cannot invoke an invalid QMetaMethod.");
if(parameterCount() != args.length) {
throw new IllegalArgumentException(String.format("Wrong number of arguments. expected: %2$s, given: %1$s", args.length, parameterCount()));
}
{
QMetaObject enclosingMetaObject = enclosingMetaObject();
QMetaObject objectMO = object.metaObject();
if(objectMO!=enclosingMetaObject && !objectMO.inherits(enclosingMetaObject)) {
throw new IllegalArgumentException(String.format("Given object is not an instance of %1$s", enclosingMetaObject.className()));
}
}
if(connection==Qt.ConnectionType.BlockingQueuedConnection && object.thread()==QThread.currentThread()) {
throw new QUnsuccessfulInvocationException("Blocking-queued invocation on object whose thread is the current thread is not allowed.");
}
Class>[] argClassTypes = new Class>[1+parameterCount()];
Class> returnType = returnClassType();
argClassTypes[0] = returnType==null ? void.class : returnType;
if(argClassTypes[0]!=void.class && argClassTypes[0]!=Void.class) {
if(connection==Qt.ConnectionType.QueuedConnection) {
throw new QUnsuccessfulInvocationException("Unable to invoke methods with return values in queued connections.");
}else if(connection==Qt.ConnectionType.AutoConnection) {
if(QThread.currentThread() != object.thread()) {
throw new QUnsuccessfulInvocationException("Unable to invoke methods with return values in queued connections (auto connection with different threads).");
}
}
}
java.util.List> parameterClassTypes = parameterClassTypes();
for(int i=0; i[] argClassTypes, int connection, Object[] args);
/**
*
*/
@QtUninvokable
public final @Nullable Object invokeOnGadget(@NonNull Object object, @Nullable Object @NonNull... args) throws IllegalArgumentException, QUnsuccessfulInvocationException {
if(!isValid())
throw new QUnsuccessfulInvocationException("Cannot invoke an invalid QMetaMethod.");
if(parameterCount() != args.length) {
throw new IllegalArgumentException(String.format("Wrong number of arguments. expected: %2$s, given: %1$s", args.length, parameterCount()));
}
{
QMetaObject enclosingMetaObject = enclosingMetaObject();
QMetaObject objectMO = QMetaObject.forGadget(object);
if(objectMO!=enclosingMetaObject && !objectMO.inherits(enclosingMetaObject)) {
throw new IllegalArgumentException(String.format("Given gadget is not an instance of %1$s", enclosingMetaObject.className()));
}
}
Class>[] argClassTypes = new Class>[1+parameterCount()];
Class> returnType = returnClassType();
argClassTypes[0] = returnType==null ? void.class : returnType;
java.util.List> parameterClassTypes = parameterClassTypes();
for(int i=0; i[] argClassTypes, Object[] args);
/**
* Returns this meta method as Java reflection method.
*/
@QtUninvokable
public final java.lang.reflect.@Nullable Method toReflectedMethod() {
if(isValid()) {
switch(methodType()) {
case Method:
case Slot:
java.lang.reflect.AccessibleObject reflected = toReflected();
if(reflected instanceof java.lang.reflect.Method){
return (java.lang.reflect.Method)reflected;
}
try {
java.util.List> parameterTypes = parameterClassTypes();
return this.enclosingMetaObject().type().getDeclaredMethod(name().toString(), parameterTypes.toArray(new Class>[parameterTypes.size()]));
} catch (NoSuchMethodException | SecurityException e) {
}
break;
default:
throw new IllegalArgumentException("Method " + this + " is a " + methodType().name().toLowerCase() + ".");
}
}
return null;
}
@QtUninvokable
private native java.lang.reflect.AccessibleObject toReflected();
/**
* Returns this meta method as Java reflection constructor.
*/
@QtUninvokable
public final java.lang.reflect.@Nullable Constructor> toReflectedConstructor() {
if(isValid()) {
if(methodType()==MethodType.Constructor) {
java.lang.reflect.AccessibleObject reflected = toReflected();
if(reflected instanceof java.lang.reflect.Constructor>){
return (java.lang.reflect.Constructor>)reflected;
}
try {
java.util.List> parameterTypes = parameterClassTypes();
return this.enclosingMetaObject().type().getDeclaredConstructor(parameterTypes.toArray(new Class>[parameterTypes.size()]));
} catch (NoSuchMethodException | SecurityException e) {
}
}else {
throw new IllegalArgumentException("Method " + this + " is not a constructor.");
}
}
return null;
}
/**
* Returns this meta method as signal object.
*/
@QtUninvokable
public final QMetaObject.@Nullable AbstractSignal toSignal(@StrictNonNull QObject sender) {
if(isValid()) {
if(methodType()==MethodType.Signal) {
QtJambi_LibraryUtilities.internal.checkedNativeId(java.util.Objects.requireNonNull(sender));
return findSignal(sender);
}else {
throw new IllegalArgumentException("Method " + this + " is not a signal.");
}
}
return null;
}
private QMetaObject.AbstractSignal findSignal(@StrictNonNull QObject sender) {
int methodIndex = methodIndex();
if((attributes() & Attributes.Cloned.value())!=0) {
return enclosingMetaObject().method(methodIndex-1).findSignal(sender);
}
Class> cls = enclosingMetaObject().type();
if(cls==null)
cls = QtJambi_LibraryUtilities.internal.getClass(sender);
if(cls!=null) {
String name = name().toString();
while(cls!=null && cls!=Object.class) {
try {
java.lang.reflect.Field f = cls.getDeclaredField(name);
if (!java.lang.reflect.Modifier.isStatic(f.getModifiers())) {
if (QMetaObject.AbstractSignal.class.isAssignableFrom(f.getType())) {
try {
QMetaObject.AbstractSignal signal = (QMetaObject.AbstractSignal)QtJambi_LibraryUtilities.internal.readField(sender, f);
if (signal != null) {
if(signal.methodIndex()==methodIndex)
return signal;
if(name.equals(signal.name()) && signal.argumentTypes().equals(parameterClassTypes())) {
return signal;
}
}
}catch(Throwable t) {}
} else if (QMetaObject.AbstractMultiSignal.class.isAssignableFrom(f.getType())) {
try {
QMetaObject.AbstractMultiSignal multiSignal = (QMetaObject.AbstractMultiSignal) QtJambi_LibraryUtilities.internal.readField(sender, f);
for (QMetaObject.AbstractSignal signal : multiSignal.allSignals()) {
if (signal.methodIndex()==methodIndex) {
return signal;
}
}
}catch(Throwable t) {}
}
}
}catch(Throwable t) {}
cls = cls.getSuperclass();
}
}
return getExtraSignal(QtJambi_LibraryUtilities.internal.nativeId(sender), QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native static QMetaObject.AbstractSignal getExtraSignal(long sender__id, long method__id);
/**
* Returns corresponding meta method for given signal object.
*/
@QtUninvokable
public static @NonNull QMetaMethod fromSignal(QMetaObject.@StrictNonNull Signal signal) {
return QMetaObject.signalMethod(signal);
}
/**
* Returns corresponding meta method for given reflection constructor.
*/
public static @NonNull QMetaMethod fromReflectedConstructor(java.lang.reflect.@StrictNonNull Constructor> constructor) {
QMetaObject mo = QMetaObject.forType(constructor.getDeclaringClass());
if(mo!=null) {
return mo.constructor(constructor.getParameterTypes());
}
return new QMetaMethod();
}
/**
* Returns corresponding meta method for given reflection method.
*/
public static @NonNull QMetaMethod fromReflectedMethod(java.lang.reflect.@StrictNonNull Method method) {
Class> declaringClass = method.getDeclaringClass();
QMetaMethod qmethod = null;
QMetaObject mo = QMetaObject.forType(declaringClass);
if(mo!=null) {
Object[] ok = {method};
qmethod = methodFromMethod(mo.metaObjectPointer, ok);
if(qmethod==null && ok[0]==null) {
qmethod = mo.method(method.getName(), method.getParameterTypes());
if(qmethod!=null && qmethod.methodType()==MethodType.Signal) {
qmethod = null;
}
}
}
if(qmethod==null)
qmethod = new QMetaMethod();
return qmethod;
}
private static native QMetaMethod methodFromMethod(long metaObjectPointer, Object[] method);
private static QMetaMethod fromMethodImpl(QMetaObject.AbstractSlot method) {
io.qt.internal.ClassAnalyzerUtility.LambdaInfo info = io.qt.internal.ClassAnalyzerUtility.lambdaInfo(method);
if(info!=null) {
if(info.owner instanceof QMetaObject.Signal
&& info.reflectiveMethod!=null
&& info.reflectiveMethod.getName().equals("emit"))
return fromSignal((QMetaObject.Signal)info.owner);
if(info.reflectiveMethod!=null)
return fromReflectedMethod(info.reflectiveMethod);
if(info.reflectiveConstructor!=null)
return fromReflectedConstructor(info.reflectiveConstructor);
}
return new QMetaMethod();
}
/**
* Returns corresponding meta method for given method handle.
*/
public static @NonNull QMetaMethod fromMethod(QMetaObject.@StrictNonNull Method0 method) {
return fromMethodImpl(method);
}
/**
* Returns corresponding meta method for given method handle.
*/
public static @NonNull QMetaMethod fromMethod(QMetaObject.@StrictNonNull Method1 method) {
return fromMethodImpl(method);
}
/**
* Returns corresponding meta method for given method handle.
*/
public static @NonNull QMetaMethod fromMethod(QMetaObject.@StrictNonNull Method2 method) {
return fromMethodImpl(method);
}
/**
* Returns corresponding meta method for given method handle.
*/
public static @NonNull QMetaMethod fromMethod(QMetaObject.@StrictNonNull Method3 method) {
return fromMethodImpl(method);
}
/**
* Returns corresponding meta method for given method handle.
*/
public static @NonNull QMetaMethod fromMethod(QMetaObject.@StrictNonNull Method4 method) {
return fromMethodImpl(method);
}
/**
* Returns corresponding meta method for given method handle.
*/
public static @NonNull QMetaMethod fromMethod(QMetaObject.@StrictNonNull Method5 method) {
return fromMethodImpl(method);
}
/**
* Returns corresponding meta method for given method handle.
*/
public static @NonNull QMetaMethod fromMethod(QMetaObject.@StrictNonNull Method6 method) {
return fromMethodImpl(method);
}
/**
* Returns corresponding meta method for given method handle.
*/
public static @NonNull QMetaMethod fromMethod(QMetaObject.@StrictNonNull Method7 method) {
return fromMethodImpl(method);
}
/**
* Returns corresponding meta method for given method handle.
*/
public static @NonNull QMetaMethod fromMethod(QMetaObject.@StrictNonNull Method8 method) {
return fromMethodImpl(method);
}
/**
* Returns corresponding meta method for given method handle.
*/
public static @NonNull QMetaMethod fromMethod(QMetaObject.@StrictNonNull Method9 method) {
return fromMethodImpl(method);
}
/**
* Returns corresponding meta method for given method handle.
*/
public static @NonNull QMetaMethod fromMethod(QMetaObject.@StrictNonNull Slot0 method) {
return fromMethodImpl(method);
}
/**
* Returns corresponding meta method for given method handle.
*/
public static @NonNull QMetaMethod fromMethod(QMetaObject.@StrictNonNull Slot1 method) {
return fromMethodImpl(method);
}
/**
* Returns corresponding meta method for given method handle.
*/
public static @NonNull QMetaMethod fromMethod(QMetaObject.@StrictNonNull Slot2 method) {
return fromMethodImpl(method);
}
/**
* Returns corresponding meta method for given method handle.
*/
public static @NonNull QMetaMethod fromMethod(QMetaObject.@StrictNonNull Slot3 method) {
return fromMethodImpl(method);
}
/**
* Returns corresponding meta method for given method handle.
*/
public static @NonNull QMetaMethod fromMethod(QMetaObject.@StrictNonNull Slot4 method) {
return fromMethodImpl(method);
}
/**
* Returns corresponding meta method for given method handle.
*/
public static @NonNull QMetaMethod fromMethod(QMetaObject.@StrictNonNull Slot5 method) {
return fromMethodImpl(method);
}
/**
* Returns corresponding meta method for given method handle.
*/
public static @NonNull QMetaMethod fromMethod(QMetaObject.@StrictNonNull Slot6 method) {
return fromMethodImpl(method);
}
/**
* Returns corresponding meta method for given method handle.
*/
public static @NonNull QMetaMethod fromMethod(QMetaObject.@StrictNonNull Slot7 method) {
return fromMethodImpl(method);
}
/**
* Returns corresponding meta method for given method handle.
*/
public static @NonNull QMetaMethod fromMethod(QMetaObject.@StrictNonNull Slot8 method) {
return fromMethodImpl(method);
}
/**
* Returns corresponding meta method for given method handle.
*/
public static @NonNull QMetaMethod fromMethod(QMetaObject.@StrictNonNull Slot9 method) {
return fromMethodImpl(method);
}
/**
* Creates and returns a copy of this object.
See QMetaMethod:: QMetaMethod(QMetaMethod)
*/
@QtUninvokable
@Override
public QMetaMethod clone() {
return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private static native QMetaMethod clone_native(long __this_nativeId);
/**
* @hidden
* Kotlin property getter. In Java use {@link #mobj()} instead.
*/
@QtUninvokable
protected final io.qt.core.@Nullable QMetaObject getMobj() {
return mobj();
}
}