Class JavaFlags
java.lang.Object
com.oracle.truffle.regex.AbstractRegexObject
com.oracle.truffle.regex.AbstractConstantKeysObject
com.oracle.truffle.regex.tregex.parser.flavors.java.JavaFlags
- All Implemented Interfaces:
com.oracle.truffle.api.interop.TruffleObject
An immutable representation of a set of java.util.regex.Pattern 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()inthashCode()booleanbooleanbooleanbooleanisDotAll()booleanbooleanisMemberReadableImpl(String symbol) booleanbooleanbooleanbooleanstatic booleanisValidFlagChar(int candidateChar) static JavaFlagsparseFlags(String source) 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
-
JavaFlags
public JavaFlags(int bits)
-
-
Method Details
-
parseFlags
-
toString
-
isCanonEq
public boolean isCanonEq() -
isUnicodeCharacterClass
public boolean isUnicodeCharacterClass() -
isUnixLines
public boolean isUnixLines() -
isCaseInsensitive
public boolean isCaseInsensitive() -
isMultiline
public boolean isMultiline() -
isDotAll
public boolean isDotAll() -
isComments
public boolean isComments() -
isUnicodeCase
public boolean isUnicodeCase() -
isLiteral
public boolean isLiteral() -
addFlag
-
delFlag
-
isValidFlagChar
public static boolean isValidFlagChar(int candidateChar) -
equals
-
hashCode
-
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
-