Uses of Class
com.google.mu.util.Substring.Pattern
Packages that use Substring.Pattern
Package
Description
A few useful collections
StringFormat, Substring, Optionals and more...
- 
Uses of Substring.Pattern in com.google.mu.collect
Methods in com.google.mu.collect with parameters of type Substring.PatternModifier and TypeMethodDescriptionstatic Selection.ParserSelection.delimitedBy(Substring.Pattern delimiter) Returns a parser forSelection, using thedelimiterpatter to delimit explicit selection elements. - 
Uses of Substring.Pattern in com.google.mu.util
Subclasses of Substring.Pattern in com.google.mu.utilModifier and TypeClassDescriptionstatic final classAn immutable string prefixPatternwith extra utilities such asSubstring.Prefix.addToIfAbsent(String),Substring.Prefix.removeFrom(StringBuilder),Substring.Prefix.isIn(CharSequence)etc.static final classAn immutable string suffixPatternwith extra utilities such asSubstring.Suffix.addToIfAbsent(String),Substring.Suffix.removeFrom(StringBuilder),Substring.Suffix.isIn(CharSequence)etc.Fields in com.google.mu.util declared as Substring.PatternModifier and TypeFieldDescriptionstatic final Substring.PatternSubstring.BEGINNINGPatternthat matches the empty substring at the beginning of the input string.static final Substring.PatternSubstring.ENDPatternthat matches the empty substring at the end of the input string.static final Substring.PatternSubstring.NONEPatternthat never matches any substring.Methods in com.google.mu.util that return Substring.PatternModifier and TypeMethodDescriptionstatic Substring.PatternSubstring.after(Substring.Pattern delimiter) Returns aPatternthat covers the substring afterdelimiter.static Substring.PatternSubstring.before(Substring.Pattern delimiter) Returns aPatternthat covers the substring beforedelimiter.static Substring.PatternSubstring.between(char open, char close) Returns aPatternthat will match the substring between the firstopenand the firstcloseafter it.static Substring.PatternSubstring.between(char open, Substring.BoundStyle openBound, char close, Substring.BoundStyle closeBound) Similar toSubstring.between(char, char)but allows to use alternative bound styles to include or exclude the delimiters at both ends.static Substring.PatternSubstring.between(Substring.Pattern open, Substring.BoundStyle openBound, Substring.Pattern close, Substring.BoundStyle closeBound) Similar toSubstring.between(Pattern, Pattern)but allows to use alternative bound styles to include or exclude the delimiters at both ends.static Substring.PatternSubstring.between(Substring.Pattern open, Substring.Pattern close) Returns aPatternthat will match the substring betweenopenandclose.static Substring.PatternSubstring.between(String open, Substring.BoundStyle openBound, String close, Substring.BoundStyle closeBound) Similar toSubstring.between(String, String)but allows to use alternative bound styles to include or exclude the delimiters at both ends.static Substring.PatternReturns aPatternthat will match the substring between the firstopenand the firstcloseafter it.static Substring.PatternSubstring.consecutive(char ch) Returns aPatternthat matches the first non-empty sequence of consecutivechcharacters.static Substring.PatternSubstring.consecutive(CharPredicate matcher) Returns aPatternthat matches the first non-empty sequence of consecutive characters identified bymatcher.static Substring.PatternSubstring.first(char character) Returns aPatternthat matches the first occurrence ofcharacter.static Substring.PatternSubstring.first(CharPredicate charMatcher) Returns aPatternthat matches the first character found bycharMatcher.static Substring.PatternReturns aPatternthat matches the first occurrence ofstr.static Substring.PatternReturns aPatternthat matches the first occurrence ofregexPattern.static Substring.PatternReturns aPatternthat matches the first occurrence ofregexPatternand then selects the capturing group identified bygroup.final Substring.PatternSubstring.Pattern.followedBy(String lookahead) Returns an otherwise equivalent pattern except it requires the matched substring be immediately followed by thelookaheadstring.final Substring.PatternSubstring.Pattern.immediatelyBetween(String lookbehind, Substring.BoundStyle lookbehindBound, String lookahead, Substring.BoundStyle lookaheadBound) Similar toimmediatelyBetween(String, String), but allows including thelookbehindand/orlookaheadinclusive in the match.final Substring.PatternSubstring.Pattern.immediatelyBetween(String lookbehind, String lookahead) Returns an otherwise equivalent pattern except it requires the matched substring be immediately preceded by thelookbehindstring and immediately followed by theafterstring.static Substring.PatternSubstring.last(char character) Returns aPatternthat matches the last occurrence ofcharacter.static Substring.PatternSubstring.last(CharPredicate charMatcher) Returns aPatternthat matches the last character found bycharMatcher.static Substring.PatternReturns aPatternthat matches the last occurrence ofstr.static Substring.PatternSubstring.leading(CharPredicate matcher) Returns aPatternthat matches from the beginning of the input string, a non-empty sequence of leading characters identified bymatcher.Substring.Pattern.limit(int maxChars) Returns aPatternthat's equivalent to this pattern except it only matches at mostmaxChars.final Substring.PatternSubstring.Pattern.notFollowedBy(String lookahead) Returns an otherwise equivalent pattern except it requires the matched substring not be immediately followed by thelookaheadstring.final Substring.PatternSubstring.Pattern.notImmediatelyBetween(String lookbehind, String lookahead) Returns an otherwise equivalent pattern except it requires the matched substring not be immediately preceded by thelookbehindstring and immediately followed by theafterstring.final Substring.PatternSubstring.Pattern.notPrecededBy(String lookbehind) Returns an otherwise equivalent pattern except it requires the matched substring not be immediately preceded by thelookbehindstring.final Substring.PatternSubstring.Pattern.or(Substring.Pattern that) Returns aPatternthat falls back to usingthatifthisfails to match.Substring.Pattern.peek(Substring.Pattern following) Return aPatternequivalent to thisPattern, except it will fail to match if thefollowingpattern can't find a match in the substring after the current match.final Substring.PatternSubstring.Pattern.precededBy(String lookbehind) Returns an otherwise equivalent pattern except it requires the matched substring be immediately preceded by thelookaheadstring.final Substring.PatternSubstring.Pattern.separatedBy(CharPredicate separator) Returns an otherwise equivalentPattern, except it only matches if it's next to the beginning of the string, the end of the string, or theseparatorcharacter(s).Substring.Pattern.separatedBy(CharPredicate separatorBefore, CharPredicate separatorAfter) Returns an otherwise equivalentPattern, except it requires the beginning of the match must either be the beginning of the string, or be separated from the rest of the string by theseparatorBeforecharacter; and the end of the match must either be the end of the string, or be separated from the rest of the string by theseparatorAftercharacter.Substring.Pattern.skip(int fromBeginning, int fromEnd) Returns aPatternthat's equivalent to this pattern except it will skip up tofromBeginningscharacters from the beginning of the match and up tofromEndcharacters from the end of the match.static Substring.PatternReturns aSubstring.Patternspanning the substring matchingformat.static Substring.PatternSubstring.spanningInOrder(String stop1, String stop2, String... moreStops) Returns aPatternthat matches the first occurrence ofstop1, followed by an occurrence ofstop2, followed sequentially by occurrences ofmoreStopsin order, including any characters between consecutive stops.final Substring.PatternSubstring.Pattern.then(Substring.Pattern following) Similar to regex lookahead, returns a pattern that matches thefollowingpattern after it has matched this pattern.final Substring.PatternSubstring.Pattern.toEnd()Returns aPatternthat will match from the substring matched bythisto the end of the input string.static Substring.PatternSubstring.trailing(CharPredicate matcher) Returns aPatternthat matches from the end of the input string, a non-empty sequence of trailing characters identified bymatcher.static Substring.PatternSubstring.upToIncluding(Substring.Pattern pattern) Returns aPatternthat will match from the beginning of the original string up to the substring matched bypatterninclusively.static Substring.PatternSubstring.word()Returns aPatternthat matches the first occurrence of a word composed of[a-zA-Z0-9_]characters.static Substring.PatternReturns aPatternthat matches the first occurrence ofwordthat isn't immediately preceded or followed by another "word" ([a-zA-Z0-9_]) character.Methods in com.google.mu.util that return types with arguments of type Substring.PatternModifier and TypeMethodDescriptionstatic Collector<Substring.Pattern, ?, Substring.Pattern> Substring.firstOccurrence()Returns aCollectorthat collects the input candidateSubstring.Patternand reults in a pattern that matches whichever that occurs first in the input string.static Collector<Substring.Pattern, ?, Substring.Pattern> Substring.firstOccurrence()Returns aCollectorthat collects the input candidateSubstring.Patternand reults in a pattern that matches whichever that occurs first in the input string.Methods in com.google.mu.util with parameters of type Substring.PatternModifier and TypeMethodDescriptionstatic Substring.PatternSubstring.after(Substring.Pattern delimiter) Returns aPatternthat covers the substring afterdelimiter.static Substring.PatternSubstring.before(Substring.Pattern delimiter) Returns aPatternthat covers the substring beforedelimiter.static Substring.PatternSubstring.between(Substring.Pattern open, Substring.BoundStyle openBound, Substring.Pattern close, Substring.BoundStyle closeBound) Similar toSubstring.between(Pattern, Pattern)but allows to use alternative bound styles to include or exclude the delimiters at both ends.static Substring.PatternSubstring.between(Substring.Pattern open, Substring.Pattern close) Returns aPatternthat will match the substring betweenopenandclose.final Substring.PatternSubstring.Pattern.or(Substring.Pattern that) Returns aPatternthat falls back to usingthatifthisfails to match.Substring.Pattern.peek(Substring.Pattern following) Return aPatternequivalent to thisPattern, except it will fail to match if thefollowingpattern can't find a match in the substring after the current match.Substring.RepeatingPattern.splitKeyValuesAround(Substring.Pattern keyValueSeparator, String input) Returns aBiStreamof key value pairs frominput.Substring.RepeatingPattern.splitThenTrimKeyValuesAround(Substring.Pattern keyValueSeparator, String input) Returns aBiStreamof key value pairs frominput.final Substring.PatternSubstring.Pattern.then(Substring.Pattern following) Similar to regex lookahead, returns a pattern that matches thefollowingpattern after it has matched this pattern.static Substring.PatternSubstring.upToIncluding(Substring.Pattern pattern) Returns aPatternthat will match from the beginning of the original string up to the substring matched bypatterninclusively.