Class xrx.xpath.Predicates
Defined in: predicates.js.
Constructor Attributes | Constructor Name and Description |
---|---|
xrx.xpath.Predicates(predicates, opt_reverse)
An abstract class for expressions with predicates.
|
Method Attributes | Method Name and Description |
---|---|
Returns whether this set of predicates needs context position.
|
|
evaluatePredicates(nodeset, opt_start)
Evaluates the predicates against the given nodeset.
|
|
Returns the length of this set of predicates.
|
|
Returns the set of predicates.
|
|
Returns the quickAttr info.
|
|
toString()
|
Class Detail
xrx.xpath.Predicates(predicates, opt_reverse)
An abstract class for expressions with predicates.
- Parameters:
- {!Array.} predicates
- The array of predicates.
- {boolean=} opt_reverse
- Whether to iterate over the nodeset in reverse.
Method Detail
{boolean}
doesNeedContextPosition()
Returns whether this set of predicates needs context position.
- Returns:
- {boolean} Whether something needs context position.
{!xrx.xpath.NodeSet}
evaluatePredicates(nodeset, opt_start)
Evaluates the predicates against the given nodeset.
- Parameters:
- {!xrx.xpath.NodeSet} nodeset
- The nodes against which to evaluate the predicates.
- {number=} opt_start
- The index of the first predicate to evaluate, defaults to 0.
- Returns:
- {!xrx.xpath.NodeSet} nodeset The filtered nodeset.
{number}
getLength()
Returns the length of this set of predicates.
- Returns:
- {number} The number of expressions.
{!Array.}
getPredicates()
Returns the set of predicates.
- Returns:
- {!Array.} The predicates.
{?{name: string|valueExpr: xrx.xpath.Expr}}
getQuickAttr()
Returns the quickAttr info.
- Returns:
- {?{name: string|valueExpr: xrx.xpath.Expr}}
toString()