Package org.rekex.regexp
Interface RegExp
- All Known Subinterfaces:
RegExp.BackReference,RegExp.CharClass,RegExp.Group
- All Known Implementing Classes:
RegExp.Alternation,RegExp.AtomicGroup,RegExp.BackReference.WithName,RegExp.BackReference.WithNumber,RegExp.Boundary,RegExp.CharClass.Intersection,RegExp.CharClass.Negation,RegExp.CharClass.Predefined,RegExp.CharClass.Range,RegExp.CharClass.Single,RegExp.CharClass.Union,RegExp.Concatenation,RegExp.Flagged,RegExp.Group.Named,RegExp.Group.Unnamed,RegExp.Lookaround,RegExp.Opaque,RegExp.Quantified
public sealed interface RegExp
permits RegExp.CharClass, RegExp.Alternation, RegExp.Concatenation, RegExp.Quantified, RegExp.Boundary, RegExp.Lookaround, RegExp.BackReference, RegExp.Group, RegExp.AtomicGroup, RegExp.Flagged, RegExp.Opaque
Data structure representing regular expressions, conforming to
Pattern.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordstatic final recordstatic interfacestatic final recordstatic interfacestatic final recordstatic final recordstatic interfacestatic final recordstatic final recordstatic final record -
Method Summary
Modifier and TypeMethodDescriptiondefault RegExp.CharClass`exp.except(args)` is equivalent to `intersect(exp, unions(args))`.
-
Method Details
-
except
`exp.except(args)` is equivalent to `intersect(exp, unions(args))`. `exp` and `arg` in `args` must all be character classes, or convertible to character classes.
-