Package io.grpc.xds.internal
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 String
contains()
private static Matchers.StringMatcher
create
(String exact, String prefix, String suffix, com.google.re2j.Pattern regEx, String contains, boolean ignoreCase) (package private) abstract String
exact()
static Matchers.StringMatcher
forContains
(String contains) The input string should contain this substring.static Matchers.StringMatcher
The input string should exactly matches the specified string.static Matchers.StringMatcher
The input string should have the prefix.static Matchers.StringMatcher
forSafeRegEx
(com.google.re2j.Pattern regEx) The input string should match this pattern.static Matchers.StringMatcher
The input string should have the suffix.(package private) abstract boolean
boolean
Returns the matching result for this string.(package private) abstract String
prefix()
(package private) abstract com.google.re2j.Pattern
regEx()
(package private) abstract String
suffix()
-
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
-