Verifies is strings match a CamelCase filter. CamelCase filtering allows to omit lowercases to match identifier names. For example, the following patterns match
DefaultMutableTreeNode
:
- DefMutTreNod
- DMutTrN
- DMTN
- DefaMuTN
- ...
Example of usage:
CamelCaseFilter filter = new CamelCaseFilter("DefMTN");
if (filter.matches("DefaultMutableTreeNode")){
// It does match.
}
This class only handles regular names (classes, methods, variables, ...). It does not understand package names or inner classes delimited by dollar signs.