Class ProjectionExpression
java.lang.Object
software.amazon.smithy.jmespath.JmespathExpression
software.amazon.smithy.jmespath.ast.BinaryExpression
software.amazon.smithy.jmespath.ast.ProjectionExpression
- Direct Known Subclasses:
ObjectProjectionExpression
Iterates over each element in the array returned from the left expression,
passes it to the right expression, and returns the aggregated results.
This AST node is created when parsing expressions like [*]
,
[]
, and [1:1]
.
- See Also:
-
Constructor Summary
ConstructorDescriptionProjectionExpression
(JmespathExpression left, JmespathExpression right) ProjectionExpression
(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.Methods inherited from class software.amazon.smithy.jmespath.ast.BinaryExpression
equals, getLeft, getRight, hashCode, toString
-
Constructor Details
-
ProjectionExpression
-
ProjectionExpression
public ProjectionExpression(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.
-