Class Index | File Index

Classes


Class xrx.xpath.Predicates


Defined in: predicates.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
xrx.xpath.Predicates(predicates, opt_reverse)
An abstract class for expressions with predicates.
Method Summary
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.
 
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()

Documentation generated by JsDoc Toolkit 2.4.0 on Thu Oct 17 2013 17:08:44 GMT+0200 (MESZ)