public abstract class BinaryNumericTest<Node> extends TestFunction<Node>
Modifier and Type | Field and Description |
---|---|
protected DoubleTransformer<Node> |
transformer |
Constructor and Description |
---|
BinaryNumericTest() |
Modifier and Type | Method and Description |
---|---|
Boolean |
apply(RDFBackend<Node> backend,
Node context,
Collection<Node>... args)
Apply the function to the list of nodes passed as arguments and return the result as type T.
|
String |
getSignature()
A string describing the signature of this node function, e.g.
|
protected abstract boolean |
test(Double left,
Double right) |
protected boolean |
test(RDFBackend<Node> backend,
Node leftNode,
Node rightNode) |
getLocalName, getPathExpression
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDescription
protected final DoubleTransformer<Node> transformer
@SafeVarargs public final Boolean apply(RDFBackend<Node> backend, Node context, Collection<Node>... args) throws IllegalArgumentException
NodeFunction
context
- the context of the execution. Same as using the
NodeSelector
'.' as parameter.args
- a nested list of KiWiNodesIllegalArgumentException
protected boolean test(RDFBackend<Node> backend, Node leftNode, Node rightNode)
public String getSignature()
NodeFunction
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.