Called to actually determine if this AgentAtRuleMatcher applies to the current agent. The result is a Set of Match constants indicating how precise the match is. While all anded rules must match for the match to succeed, some callers need information regarding whether the Version information was also necessary in order for the match to succeed. For example, when generating CSS files, the version information is only part of the CSS name if the generated CSS file for the agent contained version-dependent content.
There are three possible return values
- An empty Set, indicating no match
- A set containing
Match.APPLICATION
, indicating a match that only needed to match against the agent Application - A set containing both
Match.APPLICATION
and Match.VERSION
, indicating that both the agent Application and its version needed to be matched against
@param agent Agent to test for compatibility with
@return the Set of successful matches, if any