- 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
ConstructorDescriptionCreates a new PatternOptions.PatternOptions
(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
final void
setValue
(int value) Sets the value of this QFlags.final int
value()
Returns the value of this QFlags.
-
Constructor Details
-
PatternOptions
public PatternOptions()Creates a new PatternOptions. -
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>
-
value
public final int value()Returns the value of this QFlags. -
setValue
public final void setValue(int value) Sets the value of this QFlags.- Parameters:
value
- new value
-