Package edu.umd.cs.findbugs.util
Class ContainsCamelCaseWordStringMatcher
java.lang.Object
edu.umd.cs.findbugs.util.ContainsCamelCaseWordStringMatcher
- All Implemented Interfaces:
StringMatcher
A StringMatcher that checks to see if a candidate string (assumed to be a
camel-case word), when broken into components, contains a given word.
- Author:
- David Hovemeyer
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ContainsCamelCaseWordStringMatcher
Constructor. This StringMatcher will match any string which, when broken into camel-case identifier components, has a component which matches the (lower-cased) expected string value.- Parameters:
expected
- the expected string value
-
-
Method Details
-
matches
Description copied from interface:StringMatcher
Return whether or not the given String matches.- Specified by:
matches
in interfaceStringMatcher
- Parameters:
s
- a String- Returns:
- true if the String matches, false if it does not match
-
toString
-