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 returnstrue
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:
- 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> T
accept(ExpressionVisitor<T> visitor)
Visits a node using a double-dispatch visitor.boolean
equals(java.lang.Object o)
JmespathExpression
getComparison()
int
hashCode()
java.lang.String
toString()
-
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: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
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classBinaryExpression
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classBinaryExpression
-
toString
public java.lang.String toString()
- Overrides:
toString
in classBinaryExpression
-
-