matches method

bool matches (Element candidate)

Returns true if the given element matches the pattern.

When implementing your own MatchFinder, this is the main method to override.

Implementation

bool matches(Element candidate);