- 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:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description PropertyFlags(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 Type Method Description QScriptValue.PropertyFlags
clone()
Clones the flagsQScriptValue.PropertyFlags
combined(QScriptValue.PropertyFlag e)
Combines this flags with enum entry.int
compareTo(QScriptValue.PropertyFlags other)
QScriptValue.PropertyFlag[]
flags()
Returns an array of flag objects represented by this PropertyFlags.QScriptValue.PropertyFlags
setFlag(QScriptValue.PropertyFlag e)
Sets the flage
QScriptValue.PropertyFlags
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>
-