Creates an object representation of a Location Rule.
An array of such objects is used as parameter of
findElementsByLRules()
function.
For more details about Location Rules, see "What are Location Rules?" below.
Note: Use Location Rule Builder (found at the left panel's tree)
to quickly construct a Location Rule instantly encoded as a
LocationRule()
function call.
Parameters:
ruleSpec
The string specification of the Location Rule.
recursive
Specifies if this is a Recursive Location Rule.
(When omitted, the default value is false
.)
matchingCondQuery
Deprecated. Specifies the Matching Condition of the Location Rule.This parameter is remained for compatibility with older templates. Now, the Matching Condition is the part of the rule specification itself.
See Also:
findElementsByLRules(), findElementsByLPath(), BooleanQuery()
Example:
See discussion about this particular Location Rule in "Using Location Rules | Example" section near the end of this page.LocationRule ( "* -> extends^::(Class|Interface)", true )
${include ../../../refs/lrules.htm}