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, toStringequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitequals, visitpublic 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
AbstractQueryModelNodeQueryModelNode.visitChildren(org.eclipse.rdf4j.query.algebra.QueryModelVisitor<X>) that does nothing. Subclasses should override this
method when they have child nodes.visitChildren in interface QueryModelNodevisitChildren in class AbstractQueryModelNodeX extends Exceptionpublic void replaceChildNode(QueryModelNode current, QueryModelNode replacement)
AbstractQueryModelNodeQueryModelNode.replaceChildNode(QueryModelNode, QueryModelNode) that throws an
IllegalArgumentException indicating that current is not a child node of this node.replaceChildNode in interface QueryModelNodereplaceChildNode in class AbstractQueryModelNodecurrent - The current child node.replacement - The new child node.public AbstractNaryOperator<Expr> clone()
QueryModelNodeclone in interface QueryModelNodeclone in class AbstractQueryModelNodeCopyright © 2015-2022 Eclipse Foundation. All Rights Reserved.