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
ConstructorsConstructorDescriptionFilterProjectionExpression(JmespathExpression left, JmespathExpression comparison, JmespathExpression right) FilterProjectionExpression(JmespathExpression left, JmespathExpression comparison, JmespathExpression right, int line, int column) -
Method Summary
Modifier and TypeMethodDescription<T> Taccept(ExpressionVisitor<T> visitor) Visits a node using a double-dispatch visitor.booleaninthashCode()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:JmespathExpressionVisits a node using a double-dispatch visitor.- Specified by:
acceptin 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:
equalsin classBinaryExpression
-
hashCode
public int hashCode()- Overrides:
hashCodein classBinaryExpression
-
toString
- Overrides:
toStringin classBinaryExpression
-