QueryObject
public final class Compare extends Condition
Constructor | Description |
---|---|
Compare(Expression left,
CompareOperator operator,
Expression right) |
Constructor a compare condition that compares given left and rigth hand operand
with given comparison operator.
|
Modifier and Type | Method | Description |
---|---|---|
void |
accept(Visitor visitor) |
Accept method to handle incoming visitors.
|
Expression |
leftExpression() |
Returns left operand of the comparison.
|
Condition |
not() |
Builder method to invert a condition.
|
CompareOperator |
operator() |
Returns operator of comparison.
|
Expression |
rightExpression() |
Returns right operand of the comparison.
|
java.lang.String |
toString() |
Method constructing query string.
|
public Compare(Expression left, CompareOperator operator, Expression right)
left
- Left operand of the comparison.operator
- Operator of comparison.right
- Right operand of the comparison.public Expression leftExpression()
public CompareOperator operator()
public Expression rightExpression()
public Condition not()
Condition
public void accept(Visitor visitor)
visitor
- Visitor to be handled.public java.lang.String toString()
toString
in class java.lang.Object
Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com