Class FilterProjectionExpression
- java.lang.Object
-
- software.amazon.smithy.jmespath.JmespathExpression
-
- software.amazon.smithy.jmespath.ast.BinaryExpression
-
- software.amazon.smithy.jmespath.ast.FilterProjectionExpression
-
public final class FilterProjectionExpression extends BinaryExpression
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 returnstrueto 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:
- Filter Expressions
-
-
Constructor Summary
Constructors Constructor Description FilterProjectionExpression(JmespathExpression left, JmespathExpression comparison, JmespathExpression right)FilterProjectionExpression(JmespathExpression left, JmespathExpression comparison, JmespathExpression right, int line, int column)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> Taccept(ExpressionVisitor<T> visitor)Visits a node using a double-dispatch visitor.booleanequals(java.lang.Object o)JmespathExpressiongetComparison()inthashCode()java.lang.StringtoString()-
Methods inherited from class software.amazon.smithy.jmespath.ast.BinaryExpression
getLeft, getRight
-
-
-
-
Constructor Detail
-
FilterProjectionExpression
public FilterProjectionExpression(JmespathExpression left, JmespathExpression comparison, JmespathExpression right)
-
FilterProjectionExpression
public FilterProjectionExpression(JmespathExpression left, JmespathExpression comparison, JmespathExpression right, int line, int column)
-
-
Method Detail
-
getComparison
public JmespathExpression getComparison()
-
accept
public <T> T accept(ExpressionVisitor<T> visitor)
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
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classBinaryExpression
-
hashCode
public int hashCode()
- Overrides:
hashCodein classBinaryExpression
-
toString
public java.lang.String toString()
- Overrides:
toStringin classBinaryExpression
-
-