Uses of Interface
com.google.common.labs.regex.RegexPattern
Packages that use RegexPattern
-
Uses of RegexPattern in com.google.common.labs.regex
Subinterfaces of RegexPattern in com.google.common.labs.regexModifier and TypeInterfaceDescriptionstatic interface
Represents a character property, like\p{Lower}
or\P{Lower}
.static interface
Represents a custom character class, like[a-z]
or[^0-9]
.static interface
Represents a grouping construct in a regex.static interface
Represents a lookaround assertion:(?=...)
,(?!...)
,(?<=...)
,(?<!...)
.Classes in com.google.common.labs.regex that implement RegexPatternModifier and TypeClassDescriptionstatic final record
Represents a choice between multiple alternative regex patterns.static enum
Represents an anchor, which matches a position like start or end of a line.static final record
Represents a negated character property, like\P{Lower}
.static final record
A positive character class, like[a-z]
.static final record
A negated character class, like[^a-z]
.static final record
A capturing group, like(a)
.static final record
A named capturing group, like(?<name>a)
.static final record
A non-capturing group, like(?:a)
.static final record
Represents a literal string to be matched.static final record
Positive lookahead:(?=pattern)
.static final record
Positive lookbehind:(?<=pattern)
.static final record
Negative lookahead:(?!pattern)
.static final record
Negative lookbehind:(?<!pattern)
.static enum
Represents a POSIX character class inside a CharacterSet: e.g.static enum
Represents a predefined character class like\d
or\w
.static final record
Represents a regex pattern that is modified by a quantifier.static final record
Represents a sequence of regex patterns that must match consecutively.static final record
Represents a Unicode property class: e.g.Subinterfaces with type arguments of type RegexPattern in com.google.common.labs.regexModifier and TypeInterfaceDescriptionstatic interface
Base interface for all quantifier types.Methods in com.google.common.labs.regex that return RegexPatternModifier and TypeMethodDescriptionRegexPattern.Group.Capturing.content()
Returns the value of thecontent
record component.RegexPattern.Group.Named.content()
Returns the value of thecontent
record component.RegexPattern.Group.NonCapturing.content()
Returns the value of thecontent
record component.RegexPattern.Quantified.element()
Returns the value of theelement
record component.default RegexPattern
RegexPattern.followedBy
(RegexPattern suffix) Returns a pattern that matchesthis
only if it is followed bysuffix
.default RegexPattern
RegexPattern.notFollowedBy
(RegexPattern suffix) Returns a pattern that matchesthis
only if it is NOT followed bysuffix
.default RegexPattern
RegexPattern.notPrecededBy
(RegexPattern prefix) Returns a pattern that matchesthis
only if it is NOT preceded byprefix
.static RegexPattern
Parses the given regular expression string and returns itsRegexPattern
representation.default RegexPattern
RegexPattern.precededBy
(RegexPattern prefix) Returns a pattern that matchesthis
only if it is preceded byprefix
.RegexPattern.Lookaround.Lookahead.target()
Returns the value of thetarget
record component.RegexPattern.Lookaround.Lookbehind.target()
Returns the value of thetarget
record component.RegexPattern.Lookaround.NegativeLookahead.target()
Returns the value of thetarget
record component.RegexPattern.Lookaround.NegativeLookbehind.target()
Returns the value of thetarget
record component.RegexPattern.Lookaround.target()
Returns the AST node representing the pattern inside the lookaround.Methods in com.google.common.labs.regex that return types with arguments of type RegexPatternModifier and TypeMethodDescriptionRegexPattern.Alternation.alternatives()
Returns the value of thealternatives
record component.static Collector
<RegexPattern, ?, RegexPattern> RegexPattern.asAlternation()
A collector that collects the inputRegexPattern
as an alternation.static Collector
<RegexPattern, ?, RegexPattern> RegexPattern.asAlternation()
A collector that collects the inputRegexPattern
as an alternation.RegexPattern.Sequence.elements()
Returns the value of theelements
record component.static Collector
<RegexPattern, ?, RegexPattern> RegexPattern.inSequence()
A collector that collects the inputRegexPattern
as a sequence.static Collector
<RegexPattern, ?, RegexPattern> RegexPattern.inSequence()
A collector that collects the inputRegexPattern
as a sequence.Methods in com.google.common.labs.regex with parameters of type RegexPatternModifier and TypeMethodDescriptionstatic RegexPattern.Alternation
RegexPattern.alternation
(RegexPattern... alternatives) Returns anRegexPattern.Alternation
of the given alternatives.default RegexPattern.Quantified
RegexPattern.Quantifier.apply
(RegexPattern pattern) default RegexPattern
RegexPattern.followedBy
(RegexPattern suffix) Returns a pattern that matchesthis
only if it is followed bysuffix
.default RegexPattern
RegexPattern.notFollowedBy
(RegexPattern suffix) Returns a pattern that matchesthis
only if it is NOT followed bysuffix
.default RegexPattern
RegexPattern.notPrecededBy
(RegexPattern prefix) Returns a pattern that matchesthis
only if it is NOT preceded byprefix
.default RegexPattern
RegexPattern.precededBy
(RegexPattern prefix) Returns a pattern that matchesthis
only if it is preceded byprefix
.static RegexPattern.Sequence
RegexPattern.sequence
(RegexPattern... elements) Returns aRegexPattern.Sequence
of the given elements.Constructors in com.google.common.labs.regex with parameters of type RegexPatternModifierConstructorDescriptionCapturing
(RegexPattern content) Creates an instance of aCapturing
record class.Lookahead
(RegexPattern target) Creates an instance of aLookahead
record class.Lookbehind
(RegexPattern target) Creates an instance of aLookbehind
record class.Named
(String name, RegexPattern content) Creates an instance of aNamed
record class.NegativeLookahead
(RegexPattern target) Creates an instance of aNegativeLookahead
record class.NegativeLookbehind
(RegexPattern target) Creates an instance of aNegativeLookbehind
record class.NonCapturing
(RegexPattern content) Creates an instance of aNonCapturing
record class.Quantified
(RegexPattern element, RegexPattern.Quantifier quantifier) Creates an instance of aQuantified
record class.Constructor parameters in com.google.common.labs.regex with type arguments of type RegexPatternModifierConstructorDescriptionAlternation
(List<RegexPattern> alternatives) Creates an instance of aAlternation
record class.Sequence
(List<RegexPattern> elements) Creates an instance of aSequence
record class.