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