- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable<QJSEngine.Extensions>
- Enclosing class:
- QJSEngine
public static final class QJSEngine.Extensions extends QFlags<QJSEngine.Extension> implements Comparable<QJSEngine.Extensions>
QFlags type for enum
QJSEngine.Extension
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description Extensions(int value)
Creates a new Extensions with givenvalue
.Extensions(QJSEngine.Extension... args)
Creates a new Extensions where the flags inargs
are set. -
Method Summary
Modifier and Type Method Description QJSEngine.Extensions
clone()
Clones the flagsQJSEngine.Extensions
combined(QJSEngine.Extension e)
Combines this flags with enum entry.int
compareTo(QJSEngine.Extensions other)
QJSEngine.Extension[]
flags()
Returns an array of flag objects represented by this Extensions.QJSEngine.Extensions
setFlag(QJSEngine.Extension e)
Sets the flage
QJSEngine.Extensions
setFlag(QJSEngine.Extension e, boolean on)
Sets or clears the flagflag
-
Constructor Details
-
Extensions
Creates a new Extensions where the flags inargs
are set.- Parameters:
args
- enum entries
-
Extensions
public Extensions(int value)Creates a new Extensions with givenvalue
.- Parameters:
value
-
-
-
Method Details
-
combined
Combines this flags with enum entry.- Overrides:
combined
in classQFlags<QJSEngine.Extension>
- Parameters:
e
- enum entry- Returns:
- new Extensions
-
setFlag
Sets the flage
- Overrides:
setFlag
in classQFlags<QJSEngine.Extension>
- Parameters:
e
- enum entry- Returns:
- this
-
setFlag
Sets or clears the flagflag
- Overrides:
setFlag
in classQFlags<QJSEngine.Extension>
- Parameters:
e
- enum entryon
- set (true) or clear (false)- Returns:
- this
-
flags
Returns an array of flag objects represented by this Extensions.- Overrides:
flags
in classQFlags<QJSEngine.Extension>
- Returns:
- array of enum entries
-
clone
Clones the flags- Overrides:
clone
in classQFlags<QJSEngine.Extension>
-
compareTo
- Specified by:
compareTo
in interfaceComparable<QJSEngine.Extensions>
-