Package eu.bandm.tools.paisley
Class StringPatterns
java.lang.Object
eu.bandm.tools.paisley.StringPatterns
Static factory methods for creating patterns for strings and
regular expressions.
- See Also:
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns a pattern that matches strings ending with a given suffix.equalsIgnoreCase
(String str) (package private) static void
startsWith
(String str) Returns a pattern that matches strings starting with a given prefix.
-
Method Details
-
startsWith
Returns a pattern that matches strings starting with a given prefix.A pattern returned by this method is deterministic and binds no variables.
- Parameters:
str
- the prefix to match against.- Throws:
IllegalArgumentException
- ifstr
isnull
.- See Also:
-
endsWith
Returns a pattern that matches strings ending with a given suffix.A pattern returned by this method is deterministic and binds no variables.
- Parameters:
str
- the suffix to match against.- Throws:
IllegalArgumentException
- ifstr
isnull
.- See Also:
-
equalsIgnoreCase
-
matches
-
length
-
matches
-
find
-
tokenize
-
tokenize
-
tokenize
-
main1
-