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
public class ProjectionExpression extends BinaryExpression
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:
- Wildcard Expressions
-
-
Constructor Summary
Constructors Constructor Description ProjectionExpression(JmespathExpression left, JmespathExpression right)
ProjectionExpression(JmespathExpression left, 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.-
Methods inherited from class software.amazon.smithy.jmespath.ast.BinaryExpression
equals, getLeft, getRight, hashCode, toString
-
-
-
-
Constructor Detail
-
ProjectionExpression
public ProjectionExpression(JmespathExpression left, JmespathExpression right)
-
ProjectionExpression
public ProjectionExpression(JmespathExpression left, JmespathExpression right, int line, int column)
-
-
Method Detail
-
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.
-
-