- 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
ConstructorsConstructorDescriptionPropertyFlags(int value) Creates a new PropertyFlags with givenvalue.PropertyFlags(QScriptValue.PropertyFlag... args) Creates a new PropertyFlags where the flags inargsare set. -
Method Summary
Modifier and TypeMethodDescriptionclone()Clones the flagsCombines this flags with enum entry.final intfinal QScriptValue.PropertyFlag[]flags()Returns an array of flag objects represented by this PropertyFlags.Sets the flagesetFlag(QScriptValue.PropertyFlag e, boolean on) Sets or clears the flagflag
-
Constructor Details
-
PropertyFlags
Creates a new PropertyFlags where the flags inargsare 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:
combinedin classQFlags<QScriptValue.PropertyFlag>- Parameters:
e- enum entry- Returns:
- new PropertyFlags
-
setFlag
Sets the flage- Overrides:
setFlagin classQFlags<QScriptValue.PropertyFlag>- Parameters:
e- enum entry- Returns:
- this
-
setFlag
Sets or clears the flagflag- Overrides:
setFlagin 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:
flagsin classQFlags<QScriptValue.PropertyFlag>- Returns:
- array of enum entries
-
clone
Clones the flags- Overrides:
clonein classQFlags<QScriptValue.PropertyFlag>
-
compareTo
- Specified by:
compareToin interfaceComparable<QScriptValue.PropertyFlags>
-