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.

Source

bool matches(Element candidate);