Package edu.umd.cs.findbugs.util
Class ContainsCamelCaseWordStringMatcher
- java.lang.Object
-
- edu.umd.cs.findbugs.util.ContainsCamelCaseWordStringMatcher
-
- All Implemented Interfaces:
StringMatcher
public class ContainsCamelCaseWordStringMatcher extends java.lang.Object implements 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 Constructor Description ContainsCamelCaseWordStringMatcher(java.lang.String expected)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanmatches(java.lang.String s)Return whether or not the given String matches.java.lang.StringtoString()
-
-
-
Constructor Detail
-
ContainsCamelCaseWordStringMatcher
public ContainsCamelCaseWordStringMatcher(java.lang.String expected)
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 Detail
-
matches
public boolean matches(java.lang.String s)
Description copied from interface:StringMatcherReturn whether or not the given String matches.- Specified by:
matchesin interfaceStringMatcher- Parameters:
s- a String- Returns:
- true if the String matches, false if it does not match
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-