- 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
ConstructorDescriptionMatchOptions
(int value) Creates a new MatchOptions with givenvalue
.Creates a new MatchOptions where the flags inargs
are set. -
Method Summary
Modifier and TypeMethodDescriptionclone()
Clones the flagsCombines this flags with enum entry.final int
final QRegularExpression.MatchOption[]
flags()
Returns an array of flag objects represented by this MatchOptions.Sets the flage
setFlag
(QRegularExpression.MatchOption e, boolean on) Sets or clears the flagflag
-
Constructor Details
-
MatchOptions
Creates a new MatchOptions where the flags inargs
are 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:
combined
in classQFlags<QRegularExpression.MatchOption>
- Parameters:
e
- enum entry- Returns:
- new MatchOptions
-
setFlag
Sets the flage
- Overrides:
setFlag
in classQFlags<QRegularExpression.MatchOption>
- Parameters:
e
- enum entry- Returns:
- this
-
setFlag
Sets or clears the flagflag
- Overrides:
setFlag
in 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:
flags
in classQFlags<QRegularExpression.MatchOption>
- Returns:
- array of enum entries
-
clone
Clones the flags- Overrides:
clone
in classQFlags<QRegularExpression.MatchOption>
-
compareTo
- Specified by:
compareTo
in interfaceComparable<QRegularExpression.MatchOptions>
-