- 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:
-
Constructor Summary
ConstructorDescriptionExtensions
(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 TypeMethodDescriptionfinal QJSEngine.Extensions
clone()
Clones the flagsfinal QJSEngine.Extensions
Combines this flags with enum entry.final int
compareTo
(QJSEngine.Extensions other) final QJSEngine.Extension []
flags()
Returns an array of flag objects represented by this Extensions.final QJSEngine.Extensions
Sets the flage
final 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>
-