public class UnaryOperator extends OperatorExpression
opName| Constructor and Description |
|---|
UnaryOperator(java.lang.String opName,
Expression operand)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
emitSql(java.lang.StringBuilder sb,
java.lang.String tableAlias)
Emit this expression's contribution to the string (where clause).
|
Expression |
getOperand()
Get the operand.
|
boolean |
structuralEquals(Expression e)
Check to see if the two expressions are equal.
|
int |
structuralHashCode()
Generate the hash code for the Expression.
|
void |
visit(ExpressionVisitor ev)
Visit this node.
|
gatherExpressions, toStringpublic UnaryOperator(java.lang.String opName,
Expression operand)
opName - the string name of the operatoroperand - the operandpublic Expression getOperand()
public void emitSql(java.lang.StringBuilder sb,
java.lang.String tableAlias)
ExpressionemitSql in class Expressionsb - where to write totableAlias - the table alias to use for field namespublic boolean structuralEquals(Expression e)
ExpressionstructuralEquals in class Expressione - the other expression to compare withpublic int structuralHashCode()
ExpressionstructuralHashCode in class Expressionpublic void visit(ExpressionVisitor ev)
Expressionvisit in class Expressionev - the visitor