public class IndexEvaluator extends XPathExpressionEvaluator
| Constructor and Description | 
|---|
| IndexEvaluator(int index,
              SelectorStep selectorStep) | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | evaluate(Element element,
        ExecutionContext executionContext)Does this XPath expression evaluate for the supplied  Elementcontext object. | 
| boolean | evaluate(SAXElement element,
        ExecutionContext executionContext)Does this XPath expression evaluate for the supplied  SAXElementcontext object. | 
| ElementIndexCounter | getCounter() | 
| void | setCounter(ElementIndexCounter indexCounter) | 
| String | toString() | 
getInstancepublic IndexEvaluator(int index,
                      SelectorStep selectorStep)
public ElementIndexCounter getCounter()
public void setCounter(ElementIndexCounter indexCounter)
public boolean evaluate(SAXElement element, ExecutionContext executionContext)
XPathExpressionEvaluatorSAXElement context object.
 
 The implementation can update the context to a parent element if the expression targets
 multiple contexts.evaluate in class XPathExpressionEvaluatorelement - The SAXElement context to be evaluated against.executionContext - Smooks ExecutionContext.public boolean evaluate(Element element, ExecutionContext executionContext)
XPathExpressionEvaluatorElement context object.
 
 The implementation can update the context to a parent element if the expression targets
 multiple contexts.evaluate in class XPathExpressionEvaluatorelement - The Element context to be evaluated against.executionContext - Smooks ExecutionContext.Copyright © 2020. All rights reserved.