Class RubyFlags
java.lang.Object
com.oracle.truffle.regex.AbstractRegexObject
com.oracle.truffle.regex.AbstractConstantKeysObject
com.oracle.truffle.regex.tregex.parser.flavors.RubyFlags
- All Implemented Interfaces:
com.oracle.truffle.api.interop.TruffleObject
An immutable representation of a set of Ruby regular expression flags.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.oracle.truffle.regex.AbstractConstantKeysObject
AbstractConstantKeysObject.IsMemberReadable, AbstractConstantKeysObject.ReadMember -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddFlag(int flagChar) delFlag(int flagChar) booleangetKeys()booleanhasFlag(int flagChar) inthashCode()booleanisAscii()static booleanisBitFlag(int candidateChar) booleanbooleanbooleanbooleanisMemberReadableImpl(String symbol) booleanbooleanisSticky()static booleanisTypeFlag(int candidateChar) booleanstatic booleanisValidFlagChar(int candidateChar) readMemberImpl(String symbol) toDisplayString(boolean allowSideEffects) toString()Methods inherited from class com.oracle.truffle.regex.AbstractConstantKeysObject
getMembers, hasMembersMethods inherited from class com.oracle.truffle.regex.AbstractRegexObject
createNamedCaptureGroupMapInt, createNamedCaptureGroupMapListInt, getLanguage, hasLanguage
-
Constructor Details
-
RubyFlags
-
-
Method Details
-
hasFlag
public boolean hasFlag(int flagChar) -
isIgnoreCase
public boolean isIgnoreCase() -
isMultiline
public boolean isMultiline() -
isExtended
public boolean isExtended() -
isSticky
public boolean isSticky() -
isAscii
public boolean isAscii() -
isDefault
public boolean isDefault() -
isUnicode
public boolean isUnicode() -
addFlag
-
delFlag
-
isValidFlagChar
public static boolean isValidFlagChar(int candidateChar) -
isBitFlag
public static boolean isBitFlag(int candidateChar) -
isTypeFlag
public static boolean isTypeFlag(int candidateChar) -
equals
-
hashCode
-
toString
-
toDisplayString
- Overrides:
toDisplayStringin classAbstractRegexObject
-
getKeys
- Specified by:
getKeysin classAbstractConstantKeysObject
-
isMemberReadableImpl
- Specified by:
isMemberReadableImplin classAbstractConstantKeysObject
-
readMemberImpl
public Object readMemberImpl(String symbol) throws com.oracle.truffle.api.interop.UnknownIdentifierException - Specified by:
readMemberImplin classAbstractConstantKeysObject- Throws:
com.oracle.truffle.api.interop.UnknownIdentifierException
-