- 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:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description MatchOptions(int value)
Creates a new MatchOptions with givenvalue
.MatchOptions(QRegularExpression.MatchOption... args)
Creates a new MatchOptions where the flags inargs
are set. -
Method Summary
Modifier and Type Method Description QRegularExpression.MatchOptions
clone()
Clones the flagsQRegularExpression.MatchOptions
combined(QRegularExpression.MatchOption e)
Combines this flags with enum entry.int
compareTo(QRegularExpression.MatchOptions other)
QRegularExpression.MatchOption[]
flags()
Returns an array of flag objects represented by this MatchOptions.QRegularExpression.MatchOptions
setFlag(QRegularExpression.MatchOption e)
Sets the flage
QRegularExpression.MatchOptions
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>
-