public final class PythonFlags extends AbstractConstantKeysObject
AbstractConstantKeysObject.IsMemberReadable, AbstractConstantKeysObject.ReadMember| Modifier and Type | Field and Description |
|---|---|
static PythonFlags |
EMPTY_INSTANCE |
static PythonFlags |
TYPE_FLAGS_INSTANCE |
| Constructor and Description |
|---|
PythonFlags(String source) |
| Modifier and Type | Method and Description |
|---|---|
PythonFlags |
addFlag(int flagChar) |
PythonFlags |
addFlags(PythonFlags otherFlags) |
PythonFlags |
delFlags(PythonFlags otherFlags) |
boolean |
equals(Object other) |
PythonFlags |
fixFlags(RegexSource source,
PythonREMode mode)
Verifies that there is at most one type flag and that the type flag is compatible with the
chosen regular expression mode.
|
TruffleReadOnlyKeysArray |
getKeys() |
int |
hashCode() |
boolean |
includesGlobalFlags() |
boolean |
isAscii() |
boolean |
isDotAll() |
boolean |
isIgnoreCase() |
boolean |
isLocale() |
boolean |
isMemberReadableImpl(String symbol) |
boolean |
isMultiLine() |
boolean |
isTemplate() |
static boolean |
isTypeFlagChar(int candidateChar) |
boolean |
isUnicode(PythonREMode mode)
Returns
true if the Unicode flag is set or if it would be set by default. |
boolean |
isUnicodeExplicitlySet() |
static boolean |
isValidFlagChar(int candidateChar) |
boolean |
isVerbose() |
int |
numberOfTypeFlags() |
boolean |
overlaps(PythonFlags otherFlags) |
Object |
readMemberImpl(String symbol) |
Object |
toDisplayString(boolean allowSideEffects) |
String |
toString() |
getMembers, hasMemberscreateNamedCaptureGroupMapInt, createNamedCaptureGroupMapListInt, getLanguage, hasLanguagepublic static final PythonFlags EMPTY_INSTANCE
public static final PythonFlags TYPE_FLAGS_INSTANCE
public PythonFlags(String source)
public boolean isIgnoreCase()
public boolean isLocale()
public boolean isMultiLine()
public boolean isDotAll()
public boolean isVerbose()
public boolean isAscii()
public boolean isTemplate()
public boolean isUnicodeExplicitlySet()
public boolean isUnicode(PythonREMode mode)
true if the Unicode flag is set or if it would be set by default.public PythonFlags addFlag(int flagChar)
public PythonFlags addFlags(PythonFlags otherFlags)
public PythonFlags delFlags(PythonFlags otherFlags)
public PythonFlags fixFlags(RegexSource source, PythonREMode mode)
public static boolean isValidFlagChar(int candidateChar)
public static boolean isTypeFlagChar(int candidateChar)
public int numberOfTypeFlags()
public boolean includesGlobalFlags()
public boolean overlaps(PythonFlags otherFlags)
public Object toDisplayString(boolean allowSideEffects)
toDisplayString in class AbstractRegexObjectpublic TruffleReadOnlyKeysArray getKeys()
getKeys in class AbstractConstantKeysObjectpublic boolean isMemberReadableImpl(String symbol)
isMemberReadableImpl in class AbstractConstantKeysObjectpublic Object readMemberImpl(String symbol) throws com.oracle.truffle.api.interop.UnknownIdentifierException
readMemberImpl in class AbstractConstantKeysObjectcom.oracle.truffle.api.interop.UnknownIdentifierException