Class InvertibleCharMatcher
java.lang.Object
com.oracle.truffle.regex.tregex.matchers.CharMatcher
com.oracle.truffle.regex.tregex.matchers.InvertibleCharMatcher
- Direct Known Subclasses:
BitSetMatcher,HybridBitSetMatcher,MultiBitSetMatcher,NullHighByteBitSetMatcher,RangeListMatcher,RangeTreeMatcher,SingleCharMatcher,SingleRangeMatcher,TwoCharMatcher
Abstract character matcher that allows matching behavior to be inverted with a constructor
parameter.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedInvertibleCharMatcher(boolean invert) Construct a newInvertibleCharMatcher. -
Method Summary
Methods inherited from class com.oracle.truffle.regex.tregex.matchers.CharMatcher
estimatedCost, match
-
Constructor Details
-
InvertibleCharMatcher
protected InvertibleCharMatcher(boolean invert) Construct a newInvertibleCharMatcher.- Parameters:
invert- if this is set to true, the result ofCharMatcher.match(int)is always inverted.
-
-
Method Details
-
result
protected boolean result(boolean result) -
result
public static boolean result(boolean invert, boolean result) -
modifiersToString
-