All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.qt.internal.MethodFlags Maven / Gradle / Ivy

There is a newer version: 6.3.0
Show newest version
package io.qt.internal;

/**
 * 

Java wrapper for Qt enum MethodFlags

*/ @io.qt.QtRejectedEntries({"MethodMethod", "MethodTypeMask"}) public enum MethodFlags implements io.qt.QtFlagEnumerator { AccessPrivate(0), AccessProtected(1), AccessPublic(2), AccessMask(3), MethodMethod(0), MethodSignal(4), MethodSlot(8), MethodConstructor(12), MethodTypeMask(12), MethodCompatibility(16), MethodCloned(32), MethodScriptable(64), MethodRevisioned(128), MethodIsConst(256); private MethodFlags(int value) { this.value = value; } /** * {@inheritDoc} */ public int value() { return value; } /** * Create a QFlags of the enum entry. * @return QFlags */ public MethodAttributes asFlags() { return new MethodAttributes(value); } /** * Combines this entry with other enum entry. * @param e enum entry * @return new flag */ public MethodAttributes combined(MethodFlags e) { return new MethodAttributes(this, e); } /** * Creates a new {@link MethodAttributes} from the entries. * @param values entries * @return new flag */ public static MethodAttributes flags(MethodFlags ... values) { return new MethodAttributes(values); } /** * Returns the corresponding enum entry for the given value. * @param value * @return enum entry */ public static MethodFlags resolve(int value) { switch (value) { case 0: return AccessPrivate; case 1: return AccessProtected; case 2: return AccessPublic; case 3: return AccessMask; case 4: return MethodSignal; case 8: return MethodSlot; case 12: return MethodConstructor; case 16: return MethodCompatibility; case 32: return MethodCloned; case 64: return MethodScriptable; case 128: return MethodRevisioned; case 256: return MethodIsConst; default: throw new io.qt.QNoSuchEnumValueException(value); } } private final int value; }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy