public abstract class AbstractNaryOperator<Expr extends QueryModelNode> extends QueryModelNodeBase
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.openrdf.query.algebra.QueryModelVisitor<X>) that does
nothing. |
getParentNode, getSignature, nullEquals, replaceNodeInList, replaceWith, setParentNode, 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
QueryModelNodeBase
QueryModelNode.visitChildren(org.openrdf.query.algebra.QueryModelVisitor<X>)
that does
nothing. Subclasses should override this method when they have child
nodes.visitChildren
in interface QueryModelNode
visitChildren
in class QueryModelNodeBase
X extends Exception
public void replaceChildNode(QueryModelNode current, QueryModelNode replacement)
QueryModelNodeBase
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 QueryModelNodeBase
current
- The current child node.replacement
- The new child node.public AbstractNaryOperator<Expr> clone()
QueryModelNode
clone
in interface QueryModelNode
clone
in class QueryModelNodeBase
Copyright © 2001-2016 Aduna. All Rights Reserved.