Class xrx.xpath.Step
Extends
.
Defined in: step.js.
Constructor Attributes | Constructor Name and Description |
---|---|
xrx.xpath.Step(axis, test, opt_predicates, opt_descendants)
Class for a step in a path expression
http://www.w3.org/TR/xpath20/#id-steps.
|
Field Attributes | Field Name and Description |
---|---|
<static> |
xrx.xpath.Step.Axis
Axis enumeration.
|
Method Attributes | Method Name and Description |
---|---|
Returns whether the step evaluation should include descendants.
|
|
evaluate(ctx)
|
|
getAxis()
Returns the step's axis.
|
|
<static> |
xrx.xpath.Step.getAxis(name)
Returns the axis for this axisname or null if none.
|
getTest()
Returns the test for this step.
|
|
toString()
|
Class Detail
xrx.xpath.Step(axis, test, opt_predicates, opt_descendants)
Class for a step in a path expression
http://www.w3.org/TR/xpath20/#id-steps.
- Parameters:
- {!xrx.xpath.Step.Axis} axis
- The axis for this Step.
- {!xrx.xpath.NodeTest} test
- The test for this Step.
- {!xrx.xpath.Predicates=} opt_predicates
- The predicates for this Step.
- {boolean=} opt_descendants
- Whether descendants are to be included in this step ('//' vs '/').
Field Detail
<static>
xrx.xpath.Step.Axis
Axis enumeration.
Method Detail
{boolean}
doesIncludeDescendants()
Returns whether the step evaluation should include descendants.
- Returns:
- {boolean} Whether descendants are included.
{!xrx.xpath.NodeSet}
evaluate(ctx)
- Parameters:
- ctx
- Returns:
- {!xrx.xpath.NodeSet} The nodeset result.
{!xrx.xpath.Step.Axis}
getAxis()
Returns the step's axis.
- Returns:
- {!xrx.xpath.Step.Axis} The axis.
<static>
{xrx.xpath.Step.Axis}
xrx.xpath.Step.getAxis(name)
Returns the axis for this axisname or null if none.
- Parameters:
- {string} name
- The axis name.
- Returns:
- {xrx.xpath.Step.Axis} The axis.
{!xrx.xpath.NodeTest}
getTest()
Returns the test for this step.
- Returns:
- {!xrx.xpath.NodeTest} The test for this step.
toString()