Interface StringPattern
- All Known Implementing Classes:
AbstractStringPattern,RLikePattern,WildcardPattern,WildcardPatternList
public interface StringPattern
-
Method Summary
Modifier and TypeMethodDescriptionReturns the pattern in (Java) regex format.Returns the match if this pattern is exact, that is has no wildcard or other patterns inside.default booleanHint method on whether this pattern matches everything or not.pattern()Returns the pattern as it was defined by the user.
-
Method Details
-
asJavaRegex
String asJavaRegex()Returns the pattern in (Java) regex format. -
matchesAll
default boolean matchesAll()Hint method on whether this pattern matches everything or not. -
exactMatch
String exactMatch()Returns the match if this pattern is exact, that is has no wildcard or other patterns inside. If the pattern is not exact, null is returned. -
pattern
String pattern()Returns the pattern as it was defined by the user.
-