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