org.openrdf.sail.rdbms.algebra.base
Class UnarySqlOperator
java.lang.Object
org.openrdf.query.algebra.QueryModelNodeBase
org.openrdf.sail.rdbms.algebra.base.RdbmsQueryModelNodeBase
org.openrdf.sail.rdbms.algebra.base.UnarySqlOperator
- All Implemented Interfaces:
- Cloneable, QueryModelNode, SqlExpr
- Direct Known Subclasses:
- SqlAbs, SqlCast, SqlIsNull, SqlLowerCase, SqlNot, SqlShift
public abstract class UnarySqlOperator
- extends RdbmsQueryModelNodeBase
- implements SqlExpr
An SQL operator with one argument.
- Author:
- James Leigh
UnarySqlOperator
public UnarySqlOperator()
UnarySqlOperator
public UnarySqlOperator(SqlExpr arg)
getArg
public SqlExpr getArg()
setArg
public void setArg(SqlExpr arg)
visitChildren
public <X extends Exception> void visitChildren(QueryModelVisitor<X> visitor)
throws X extends Exception
- Description copied from class:
QueryModelNodeBase
- Dummy implementation of
QueryModelNode.visitChildren(org.openrdf.query.algebra.QueryModelVisitor) that does
nothing. Subclasses should override this method when they have child
nodes.
- Specified by:
visitChildren in interface QueryModelNode- Overrides:
visitChildren in class QueryModelNodeBase
- Throws:
X extends Exception
replaceChildNode
public void replaceChildNode(QueryModelNode current,
QueryModelNode replacement)
- Description copied from class:
QueryModelNodeBase
- Default implementation of
QueryModelNode.replaceChildNode(QueryModelNode, QueryModelNode)
that throws an IllegalArgumentException indicating that
current is not a child node of this node.
- Specified by:
replaceChildNode in interface QueryModelNode- Overrides:
replaceChildNode in class QueryModelNodeBase
- Parameters:
current - The current child node.replacement - The new child node.
clone
public UnarySqlOperator clone()
- Description copied from interface:
QueryModelNode
- Returns a (deep) clone of this query model node. This method recursively
clones the entire node tree, starting from this nodes.
- Specified by:
clone in interface QueryModelNode- Specified by:
clone in interface SqlExpr- Overrides:
clone in class QueryModelNodeBase
- Returns:
- A deep clone of this query model node.
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
toString
public String toString()
- Description copied from interface:
QueryModelNode
- Returns an indented print of the node tree, starting from this node.
- Specified by:
toString in interface QueryModelNode- Overrides:
toString in class QueryModelNodeBase
Copyright © 2001-2008 Aduna. All Rights Reserved.