public class AggregatedXPathStep extends Object implements AggregatedStep
SimpleStepAggregationVisitor
.
These steps represent one or more simple OXPath steps (read: steps which can be passed directly to the web browser's
XPath API for processing). Useful when using a browser API that processes XPath quickly, but may have significant
overhead costs to each invokation of the evaluate
method. Important note: using aggregated steps results in
the OXPath engine inheriting the runtime complexity characterizations of the browser's XPath API (rather than those
of PAAT). Be aware, some engines (e.g., XALAN in HtmlUnit) have known exponential worst-case complexity.Modifier and Type | Class and Description |
---|---|
static class |
AggregatedXPathStep.Builder
AggregatedSimpleSteps are immutable objects.
|
Modifier and Type | Method and Description |
---|---|
Axis |
getAxis()
Returns the axis associated with the first step in the aggregation
|
NodeTest |
getNodeTest()
Returns the nodetest associated with the first step in the aggregation
|
String |
getPathExpression()
Returns the full path expression, expressed as a
String object |
boolean |
isPlainXPath() |
String |
toOXPath() |
public Axis getAxis()
public NodeTest getNodeTest()
getNodeTest
in interface Step
public String getPathExpression()
String
objectgetPathExpression
in interface AggregatedStep
String
representation of the XPath callpublic boolean isPlainXPath()
isPlainXPath
in interface Step
Copyright © 2020 OXPath Team. All rights reserved.