public abstract class AbstractNaryOperator<Expr extends QueryModelNode> extends AbstractQueryModelNode
Constructor and Description |
---|
AbstractNaryOperator() |
AbstractNaryOperator(Expr... args)
Creates a new n-ary operator.
|
AbstractNaryOperator(List<? extends Expr> args)
Creates a new n-ary operator.
|
Modifier and Type | Method and Description |
---|---|
void |
addArg(Expr arg)
Sets the arguments of this n-ary operator.
|
AbstractNaryOperator<Expr> |
clone()
Returns a (deep) clone of this query model node.
|
Expr |
getArg(int idx)
Gets the idx-th argument of this n-ary operator.
|
List<? extends Expr> |
getArgs()
Gets the arguments of this n-ary operator.
|
int |
getNumberOfArguments()
Gets the number of arguments of this n-ary operator.
|
boolean |
removeArg(Expr arg) |
void |
replaceChildNode(QueryModelNode current,
QueryModelNode replacement)
Default implementation of
QueryModelNode.replaceChildNode(QueryModelNode, QueryModelNode) that throws an
IllegalArgumentException indicating that current is not a child node of this node. |
protected void |
setArg(int idx,
Expr arg)
Sets the idx-th argument of this n-ary tuple operator.
|
<X extends Exception> |
visitChildren(QueryModelVisitor<X> visitor)
Dummy implementation of
QueryModelNode.visitChildren(org.eclipse.rdf4j.query.algebra.QueryModelVisitor<X>) that does nothing. |
getCostEstimate, getParentNode, getResultSizeActual, getResultSizeEstimate, getSignature, getTotalTimeNanosActual, isGraphPatternGroup, isVariableScopeChange, nullEquals, replaceNodeInList, replaceWith, setCostEstimate, setGraphPatternGroup, setParentNode, setResultSizeActual, setResultSizeEstimate, setTotalTimeNanosActual, setVariableScopeChange, toString
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
equals, visit
public AbstractNaryOperator()
public AbstractNaryOperator(Expr... args)
public List<? extends Expr> getArgs()
public int getNumberOfArguments()
public Expr getArg(int idx)
public final void addArg(Expr arg)
protected final void setArg(int idx, Expr arg)
public boolean removeArg(Expr arg)
public <X extends Exception> void visitChildren(QueryModelVisitor<X> visitor) throws X extends Exception
AbstractQueryModelNode
QueryModelNode.visitChildren(org.eclipse.rdf4j.query.algebra.QueryModelVisitor<X>)
that does nothing. Subclasses should override this
method when they have child nodes.visitChildren
in interface QueryModelNode
visitChildren
in class AbstractQueryModelNode
X extends Exception
public void replaceChildNode(QueryModelNode current, QueryModelNode replacement)
AbstractQueryModelNode
QueryModelNode.replaceChildNode(QueryModelNode, QueryModelNode)
that throws an
IllegalArgumentException
indicating that current is not a child node of this node.replaceChildNode
in interface QueryModelNode
replaceChildNode
in class AbstractQueryModelNode
current
- The current child node.replacement
- The new child node.public AbstractNaryOperator<Expr> clone()
QueryModelNode
clone
in interface QueryModelNode
clone
in class AbstractQueryModelNode
Copyright © 2015-2020 Eclipse Foundation. All Rights Reserved.