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.8.0
Show newest version
package io.qt.internal;

import io.qt.*;

/**
 * 

Java wrapper for Qt enum MethodFlags

* @hidden */ @QtRejectedEntries({"MethodMethod", "MethodTypeMask"}) public enum MethodFlags implements QtFlagEnumerator { /** *

Representing AccessPrivate

*/ AccessPrivate(0), /** *

Representing AccessProtected

*/ AccessProtected(1), /** *

Representing AccessPublic

*/ AccessPublic(2), /** *

Representing AccessMask

*/ AccessMask(3), /** *

Representing MethodMethod

*/ MethodMethod(0), /** *

Representing MethodSignal

*/ MethodSignal(4), /** *

Representing MethodSlot

*/ MethodSlot(8), /** *

Representing MethodConstructor

*/ MethodConstructor(12), /** *

Representing MethodTypeMask

*/ MethodTypeMask(12), /** *

Representing MethodCompatibility

*/ MethodCompatibility(16), /** *

Representing MethodCloned

*/ MethodCloned(32), /** *

Representing MethodScriptable

*/ MethodScriptable(64), /** *

Representing MethodRevisioned

*/ MethodRevisioned(128), /** *

Representing MethodIsConst

*/ MethodIsConst(256); static { QtJambi_LibraryUtilities.initialize(); } private MethodFlags(int value) { this.value = value; } /** * {@inheritDoc} */ public int value() { return value; } /** * Create a QFlags of the enum entry. * @return QFlags */ public @NonNull MethodAttributes asFlags() { return new MethodAttributes(value); } /** * Combines this entry with other enum entry. * @param e enum entry * @return new flag */ public @NonNull MethodAttributes combined(@NonNull MethodFlags e) { return asFlags().setFlag(e, true); } /** * Excludes other enum entry from a flag of this entry. * @param e enum entry * @return new flag */ public @NonNull MethodAttributes cleared(@NonNull MethodFlags e) { return asFlags().setFlag(e, false); } /** * Creates a new {@link MethodAttributes} from the entries. * @param values entries * @return new flag */ public static @NonNull MethodAttributes flags(@Nullable MethodFlags @NonNull... values) { return new MethodAttributes(values); } /** * Returns the corresponding enum entry for the given value. * @param value * @return enum entry */ public static @NonNull 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 QNoSuchEnumValueException(value); } } private final int value; }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy