public final class PythonFlags extends AbstractConstantKeysObject
AbstractConstantKeysObject.IsReadableCacheNode, AbstractConstantKeysObject.ReadCacheNode| 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(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() |
boolean |
hasFlag(int flagChar) |
int |
hashCode() |
boolean |
includesGlobalFlags() |
boolean |
isAscii() |
boolean |
isDotAll() |
boolean |
isIgnoreCase() |
boolean |
isLocale() |
boolean |
isMultiLine() |
boolean |
isSticky() |
boolean |
isTemplate() |
boolean |
isUnicode() |
static boolean |
isValidFlagChar(int candidateChar) |
boolean |
isVerbose() |
int |
numberOfTypeFlags() |
boolean |
overlaps(PythonFlags otherFlags) |
Object |
readMemberImpl(String symbol) |
String |
toString() |
getMembers, hasMembers, isMemberReadable, readMemberpublic static final PythonFlags EMPTY_INSTANCE
public static final PythonFlags TYPE_FLAGS_INSTANCE
public PythonFlags(String source)
public boolean hasFlag(int flagChar)
public boolean isIgnoreCase()
public boolean isLocale()
public boolean isMultiLine()
public boolean isDotAll()
public boolean isVerbose()
public boolean isAscii()
public boolean isTemplate()
public boolean isUnicode()
public boolean isSticky()
public PythonFlags addFlag(int flagChar)
public PythonFlags addFlags(PythonFlags otherFlags)
public PythonFlags delFlags(PythonFlags otherFlags)
public PythonFlags fixFlags(PythonREMode mode)
public static boolean isValidFlagChar(int candidateChar)
public int numberOfTypeFlags()
public boolean includesGlobalFlags()
public boolean overlaps(PythonFlags otherFlags)
public TruffleReadOnlyKeysArray getKeys()
getKeys in class AbstractConstantKeysObjectpublic Object readMemberImpl(String symbol) throws com.oracle.truffle.api.interop.UnknownIdentifierException
readMemberImpl in class AbstractConstantKeysObjectcom.oracle.truffle.api.interop.UnknownIdentifierException