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