Class FilterProjectionExpression
java.lang.Object
software.amazon.smithy.jmespath.JmespathExpression
software.amazon.smithy.jmespath.ast.BinaryExpression
software.amazon.smithy.jmespath.ast.FilterProjectionExpression
A projection that filters values using a comparison.
A filter projection executes the left AST expression, expects it to
return an array of values, passes each result of the left expression to
a ComparatorExpression
, and yields any value from the comparison
expression that returns true
to the right AST expression.
Note: while this expression does have a comparator expression, it is still considered a binary expression because it has a left hand side and a right hand side.
- See Also:
-
Constructor Summary
ConstructorDescriptionFilterProjectionExpression
(JmespathExpression left, JmespathExpression comparison, JmespathExpression right) FilterProjectionExpression
(JmespathExpression left, JmespathExpression comparison, 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
int
hashCode()
toString()
Methods inherited from class software.amazon.smithy.jmespath.ast.BinaryExpression
getLeft, getRight
-
Constructor Details
-
FilterProjectionExpression
public FilterProjectionExpression(JmespathExpression left, JmespathExpression comparison, JmespathExpression right) -
FilterProjectionExpression
public FilterProjectionExpression(JmespathExpression left, JmespathExpression comparison, JmespathExpression right, int line, int column)
-
-
Method Details
-
getComparison
-
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.
-
equals
- Overrides:
equals
in classBinaryExpression
-
hashCode
public int hashCode()- Overrides:
hashCode
in classBinaryExpression
-
toString
- Overrides:
toString
in classBinaryExpression
-