Interface RegexPattern.Lookaround
- All Superinterfaces:
RegexPattern
- All Known Implementing Classes:
RegexPattern.Lookaround.Lookahead
,RegexPattern.Lookaround.Lookbehind
,RegexPattern.Lookaround.NegativeLookahead
,RegexPattern.Lookaround.NegativeLookbehind
- Enclosing interface:
RegexPattern
public static sealed interface RegexPattern.Lookaround
extends RegexPattern
permits RegexPattern.Lookaround.Lookahead, RegexPattern.Lookaround.NegativeLookahead, RegexPattern.Lookaround.Lookbehind, RegexPattern.Lookaround.NegativeLookbehind
Represents a lookaround assertion:
(?=...)
, (?!...)
, (?<=...)
, (?<!...)
.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final record
Positive lookahead:(?=pattern)
.static final record
Positive lookbehind:(?<=pattern)
.static final record
Negative lookahead:(?!pattern)
.static final record
Negative lookbehind:(?<!pattern)
.Nested classes/interfaces inherited from interface com.google.common.labs.regex.RegexPattern
RegexPattern.Alternation, RegexPattern.Anchor, RegexPattern.AtLeast, RegexPattern.AtMost, RegexPattern.CharacterProperty, RegexPattern.CharacterSet, RegexPattern.CharRange, RegexPattern.CharSetElement, RegexPattern.Group, RegexPattern.Limited, RegexPattern.Literal, RegexPattern.LiteralChar, RegexPattern.Lookaround, RegexPattern.PosixCharClass, RegexPattern.PredefinedCharClass, RegexPattern.Quantified, RegexPattern.Quantifier, RegexPattern.Sequence, RegexPattern.UnicodeProperty
-
Method Summary
Modifier and TypeMethodDescriptiontarget()
Returns the AST node representing the pattern inside the lookaround.Methods inherited from interface com.google.common.labs.regex.RegexPattern
followedBy, notFollowedBy, notPrecededBy, precededBy
-
Method Details
-
target
RegexPattern target()Returns the AST node representing the pattern inside the lookaround.
-