Class ComparatorExpression
java.lang.Object
software.amazon.smithy.jmespath.JmespathExpression
software.amazon.smithy.jmespath.ast.BinaryExpression
software.amazon.smithy.jmespath.ast.ComparatorExpression
Compares the left and right expression using a comparator,
resulting in a boolean value.
-
Constructor Summary
ConstructorDescriptionComparatorExpression
(ComparatorType comparator, JmespathExpression left, JmespathExpression right) ComparatorExpression
(ComparatorType comparator, JmespathExpression left, JmespathExpression right, int line, int column) -
Method Summary
Modifier and TypeMethodDescription<T> T
accept
(ExpressionVisitor<T> visitor) Visits a node using a double-dispatch visitor.boolean
Gets the comparator to apply to the left and right expressions.int
hashCode()
toString()
Methods inherited from class software.amazon.smithy.jmespath.ast.BinaryExpression
getLeft, getRight
-
Constructor Details
-
ComparatorExpression
public ComparatorExpression(ComparatorType comparator, JmespathExpression left, JmespathExpression right) -
ComparatorExpression
public ComparatorExpression(ComparatorType comparator, JmespathExpression left, JmespathExpression right, int line, int column)
-
-
Method Details
-
accept
Description copied from class:JmespathExpression
Visits a node using a double-dispatch visitor.- Specified by:
accept
in classJmespathExpression
- Type Parameters:
T
- Type of value the visitor returns.- Parameters:
visitor
- Visitor to accept on the node.- Returns:
- Returns the result of applying the visitor.
-
getComparator
Gets the comparator to apply to the left and right expressions.- Returns:
- Returns the comparator.
-
equals
- Overrides:
equals
in classBinaryExpression
-
hashCode
public int hashCode()- Overrides:
hashCode
in classBinaryExpression
-
toString
- Overrides:
toString
in classBinaryExpression
-