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 recordPositive lookahead:(?=pattern).static final recordPositive lookbehind:(?<=pattern).static final recordNegative lookahead:(?!pattern).static final recordNegative lookbehind:(?<!pattern).Nested classes/interfaces inherited from interface com.google.common.labs.regex.RegexPattern
RegexPattern.Alternation, RegexPattern.Anchor, RegexPattern.AtLeast, RegexPattern.AtMost, RegexPattern.Backreference, RegexPattern.CharacterProperty, RegexPattern.CharacterSet, RegexPattern.CharRange, RegexPattern.CharSetElement, RegexPattern.Group, RegexPattern.Limited, RegexPattern.Literal, RegexPattern.LiteralChar, RegexPattern.Lookaround, RegexPattern.Metadata, RegexPattern.ModifierFlag, RegexPattern.PosixCharClass, RegexPattern.PredefinedCharClass, RegexPattern.Quantified, RegexPattern.Quantifier, RegexPattern.Sequence, RegexPattern.UnicodeProperty -
Method Summary
Modifier and TypeMethodDescriptiondefault RegexPattern.Metadatametadata()Returns this pattern's metadata that may be useful for static analysis.target()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
-
metadata
Description copied from interface:RegexPatternReturns this pattern's metadata that may be useful for static analysis.- Specified by:
metadatain interfaceRegexPattern
-
target
RegexPattern target()Returns the AST node representing the pattern inside the lookaround.
-