Uses of Interface
com.google.common.labs.regex.RegexPattern
Packages that use RegexPattern
Package
Description
Regex parser for dev tools (requires dot-parse artifact)
-
Uses of RegexPattern in com.google.common.labs.regex
Subinterfaces of RegexPattern in com.google.common.labs.regexModifier and TypeInterfaceDescriptionstatic interfaceRepresents a character property, like\p{Lower}or\P{Lower}.static interfaceRepresents a custom character class, like[a-z]or[^0-9].static interfaceRepresents a grouping construct in a regex.static interfaceRepresents a lookaround assertion:(?=...),(?!...),(?<=...),(?<!...).Classes in com.google.common.labs.regex that implement RegexPatternModifier and TypeClassDescriptionstatic final recordRepresents a choice between multiple alternative regex patterns.static enumRepresents an anchor, which matches a position like start or end of a line.static final recordRepresents a negated character property, like\P{Lower}.static final recordA positive character class, like[a-z].static final recordA negated character class, like[^a-z].static final recordA capturing group, like(a).static final recordA named capturing group, like(?<name>a).static final recordA non-capturing group, like(?:a).static final recordRepresents a literal string to be matched.static final recordPositive lookahead:(?=pattern).static final recordPositive lookbehind:(?<=pattern).static final recordNegative lookahead:(?!pattern).static final recordNegative lookbehind:(?<!pattern).static enumRepresents a POSIX character class inside a CharacterSet: e.g.static enumRepresents a predefined character class like\dor\w.static final recordRepresents a regex pattern that is modified by a quantifier.static final recordRepresents a sequence of regex patterns that must match consecutively.static final recordRepresents a Unicode property class: e.g.Subinterfaces with type arguments of type RegexPattern in com.google.common.labs.regexModifier and TypeInterfaceDescriptionstatic interfaceBase interface for all quantifier types.Methods in com.google.common.labs.regex that return RegexPatternModifier and TypeMethodDescriptionRegexPattern.Group.Capturing.content()Returns the value of thecontentrecord component.RegexPattern.Group.Named.content()Returns the value of thecontentrecord component.RegexPattern.Group.NonCapturing.content()Returns the value of thecontentrecord component.RegexPattern.Quantified.element()Returns the value of theelementrecord component.default RegexPatternRegexPattern.followedBy(RegexPattern suffix) Returns a pattern that matchesthisonly if it is followed bysuffix.default RegexPatternRegexPattern.notFollowedBy(RegexPattern suffix) Returns a pattern that matchesthisonly if it is NOT followed bysuffix.default RegexPatternRegexPattern.notPrecededBy(RegexPattern prefix) Returns a pattern that matchesthisonly if it is NOT preceded byprefix.static RegexPatternParses the given regular expression string and returns itsRegexPatternrepresentation.default RegexPatternRegexPattern.precededBy(RegexPattern prefix) Returns a pattern that matchesthisonly if it is preceded byprefix.RegexPattern.Lookaround.Lookahead.target()Returns the value of thetargetrecord component.RegexPattern.Lookaround.Lookbehind.target()Returns the value of thetargetrecord component.RegexPattern.Lookaround.NegativeLookahead.target()Returns the value of thetargetrecord component.RegexPattern.Lookaround.NegativeLookbehind.target()Returns the value of thetargetrecord 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 thealternativesrecord component.static Collector<RegexPattern, ?, RegexPattern> RegexPattern.asAlternation()A collector that collects the inputRegexPatternas an alternation.static Collector<RegexPattern, ?, RegexPattern> RegexPattern.asAlternation()A collector that collects the inputRegexPatternas an alternation.RegexPattern.Sequence.elements()Returns the value of theelementsrecord component.static Collector<RegexPattern, ?, RegexPattern> RegexPattern.inSequence()A collector that collects the inputRegexPatternas a sequence.static Collector<RegexPattern, ?, RegexPattern> RegexPattern.inSequence()A collector that collects the inputRegexPatternas a sequence.Methods in com.google.common.labs.regex with parameters of type RegexPatternModifier and TypeMethodDescriptionstatic RegexPattern.AlternationRegexPattern.alternation(RegexPattern... alternatives) Returns anRegexPattern.Alternationof the given alternatives.default RegexPattern.QuantifiedRegexPattern.Quantifier.apply(RegexPattern pattern) default RegexPatternRegexPattern.followedBy(RegexPattern suffix) Returns a pattern that matchesthisonly if it is followed bysuffix.default RegexPatternRegexPattern.notFollowedBy(RegexPattern suffix) Returns a pattern that matchesthisonly if it is NOT followed bysuffix.default RegexPatternRegexPattern.notPrecededBy(RegexPattern prefix) Returns a pattern that matchesthisonly if it is NOT preceded byprefix.default RegexPatternRegexPattern.precededBy(RegexPattern prefix) Returns a pattern that matchesthisonly if it is preceded byprefix.static RegexPattern.SequenceRegexPattern.sequence(RegexPattern... elements) Returns aRegexPattern.Sequenceof the given elements.Constructors in com.google.common.labs.regex with parameters of type RegexPatternModifierConstructorDescriptionCapturing(RegexPattern content) Creates an instance of aCapturingrecord class.Lookahead(RegexPattern target) Creates an instance of aLookaheadrecord class.Lookbehind(RegexPattern target) Creates an instance of aLookbehindrecord class.Named(String name, RegexPattern content) Creates an instance of aNamedrecord class.NegativeLookahead(RegexPattern target) Creates an instance of aNegativeLookaheadrecord class.NegativeLookbehind(RegexPattern target) Creates an instance of aNegativeLookbehindrecord class.NonCapturing(RegexPattern content) Creates an instance of aNonCapturingrecord class.Quantified(RegexPattern element, RegexPattern.Quantifier quantifier) Creates an instance of aQuantifiedrecord class.Constructor parameters in com.google.common.labs.regex with type arguments of type RegexPatternModifierConstructorDescriptionAlternation(List<RegexPattern> alternatives) Creates an instance of aAlternationrecord class.Sequence(List<RegexPattern> elements) Creates an instance of aSequencerecord class.