edu.wpi.cs.dsrg.xmldb.xat.common.expression
Class UniNotExpressionImp

java.lang.Object
  |
  +--edu.wpi.cs.dsrg.xmldb.xat.common.expression.UniNotExpressionImp

public class UniNotExpressionImp
extends java.lang.Object
implements UniNotExpression

This class defines a Uniary Not expression.

Since:
1.0
See Also:
Serialized Form

Constructor Summary
UniNotExpressionImp(Expression exp)
          The default UniNotExpressionImp constructor.
 
Method Summary
 java.lang.Object eval(XATOperator xopOper, int[] iPositions)
          Evaluate the expression of the XATOperator.
 Expression getExpression()
          Get the expression.
 ColumnName[] getRelatedColumnNames()
          get column names related with expression.
 void setExpression(Expression exp)
          Set this uniary expression using given expression.
 java.lang.String toSQL(OperatorEvaluator soe)
          Convert the expression as a SQL statement.
 java.lang.String toString()
          Output a string of this expression.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UniNotExpressionImp

public UniNotExpressionImp(Expression exp)
The default UniNotExpressionImp constructor.
Parameters:
exp - The expression used to construct this UniNotExpression.
Since:
1.0
Method Detail

eval

public java.lang.Object eval(XATOperator xopOper,
                             int[] iPositions)
Evaluate the expression of the XATOperator.
Parameters:
xopOper - The operator evaluated.
iPositions - The position of tuple in the XATTable.
Returns:
The evaluate result of expression.
Since:
1.0

getExpression

public Expression getExpression()
Get the expression.
Returns:
This uniary expression.
Since:
1.0

getRelatedColumnNames

public ColumnName[] getRelatedColumnNames()
get column names related with expression.
Returns:
ColumnName[] The array containing all the related column names.
Since:
1.0

setExpression

public void setExpression(Expression exp)
Set this uniary expression using given expression.
Parameters:
The - given expression used to set this uniary expression.
Since:
1.0

toSQL

public java.lang.String toSQL(OperatorEvaluator soe)
Convert the expression as a SQL statement.
Parameters:
soe - The operator evaluator for SQL generation.
Returns:
java.lang.String The converted string.
Since:
1.0

toString

public java.lang.String toString()
Output a string of this expression.
Overrides:
toString in class java.lang.Object
Returns:
String the output result.
Since:
1.0