Class Matchers.StringMatcher
java.lang.Object
io.grpc.xds.internal.Matchers.StringMatcher
- Direct Known Subclasses:
AutoValue_Matchers_StringMatcher
- Enclosing class:
Matchers
Represents various ways to match a string .
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) abstract Stringcontains()private static Matchers.StringMatchercreate(String exact, String prefix, String suffix, com.google.re2j.Pattern regEx, String contains, boolean ignoreCase) (package private) abstract Stringexact()static Matchers.StringMatcherforContains(String contains) The input string should contain this substring.static Matchers.StringMatcherThe input string should exactly matches the specified string.static Matchers.StringMatcherThe input string should have the prefix.static Matchers.StringMatcherforSafeRegEx(com.google.re2j.Pattern regEx) The input string should match this pattern.static Matchers.StringMatcherThe input string should have the suffix.(package private) abstract booleanbooleanReturns the matching result for this string.(package private) abstract Stringprefix()(package private) abstract com.google.re2j.PatternregEx()(package private) abstract Stringsuffix()
-
Constructor Details
-
StringMatcher
public StringMatcher()
-
-
Method Details
-
exact
-
prefix
-
suffix
-
regEx
-
contains
-
ignoreCase
abstract boolean ignoreCase() -
forExact
The input string should exactly matches the specified string. -
forPrefix
The input string should have the prefix. -
forSuffix
The input string should have the suffix. -
forSafeRegEx
The input string should match this pattern. -
forContains
The input string should contain this substring. -
matches
Returns the matching result for this string. -
create
-