public final class ValueComparisonCondition extends ComparisonCondition
ComparisonCondition
that represents a simple comparison condition, which compares one expression to another expression.Constructor and Description |
---|
ValueComparisonCondition(TypedExpression lhsArgument, java.lang.String operator, TypedExpression rhsArgument)
Creates a new
ValueComparisonCondition that has the specified left-hand-side and right-hand-side argument expressions and operator. |
Modifier and Type | Method and Description |
---|---|
TypedExpression |
getRhsArgument()
Gets the expression that is the right-hand-side argument of this
ValueComprisonCondition . |
java.lang.Object |
visit(SyntaxObjectVisitor visitor, java.lang.Object context)
Calls the
visitValueComparisonCondition method of the SyntaxObjectVisitor and passes that method this ValueComparisonCondition and an Object . |
getLhsArgument, getOperator
and, isCompositeObject, not, or
equals, equals, fromSyntax, fromSyntax, fromSyntax, fromSyntax, fromSyntax, isValid, toSyntax, toSyntax, toSyntax, toSyntax, toSyntax, toSyntax
public ValueComparisonCondition(TypedExpression lhsArgument, java.lang.String operator, TypedExpression rhsArgument)
ValueComparisonCondition
that has the specified left-hand-side and right-hand-side argument expressions and operator.lhsArgument
- The TypedExpression
to use as the left-hand-side argument.operator
- The operator to use, which can be any of the ComparisonCondition
constants.rhsArgument
- The TypedExpression
to use as the right-hand-side argument.public java.lang.Object visit(SyntaxObjectVisitor visitor, java.lang.Object context)
visitValueComparisonCondition
method of the SyntaxObjectVisitor
and passes that method this ValueComparisonCondition
and an Object
.visit
in class SyntaxObject
visitor
- A SyntaxObjectVisitor
.context
- An Object
.Object
returned by the visitValueComparisonCondition
method.public TypedExpression getRhsArgument()
ValueComprisonCondition
.TypedExpression
that is the right-hand-side argument of this ValueComprisonCondition
.