public class SelectorPredicate extends Object implements OXPathPredicate
Constructor and Description |
---|
SelectorPredicate(Selector select,
String aName)
basic constructor
|
Modifier and Type | Method and Description |
---|---|
OXPathType |
evaluateIterative(OXPathContextNode contextNode)
evaluates input by the operation and returns the result; call this method when no position() or
last() node tests occur inside subsequent predicates (or this one) in this list.
|
OXPathType |
evaluateSet(IOXPathNodeList contextSet)
evaluates input by the operation and returns the result; call this method when position() or
last() node tests occur inside subsequent predicates (or this one) in this list.
|
OXPathPredicateTypes |
getType()
returns the type of the predicate
|
String |
getValue()
returns a
String representation of the selector predicate |
String |
toXPath() |
public OXPathType evaluateIterative(OXPathContextNode contextNode) throws OXPathException
contextNode
- context nodeOXPathException
- in case of exception in nested callspublic OXPathType evaluateSet(IOXPathNodeList contextSet) throws OXPathException
contextSet
- context setOXPathException
- in case of exception in nested callspublic OXPathPredicateTypes getType()
getType
in interface OXPathPredicate
public String getValue()
String
representation of the selector predicateString
representation of the selector predicatepublic String toXPath()
Copyright © 2020 OXPath Team. All rights reserved.