Class ObjectProjectionExpression
java.lang.Object
software.amazon.smithy.jmespath.JmespathExpression
software.amazon.smithy.jmespath.ast.BinaryExpression
software.amazon.smithy.jmespath.ast.ProjectionExpression
software.amazon.smithy.jmespath.ast.ObjectProjectionExpression
A projection of object values.
If the left AST expression does not return an object, then the
result of the projection is a null
value. Otherwise, the
object values are each yielded to the right AST expression,
building up a list of results.
- See Also:
-
Constructor Summary
ConstructorDescriptionObjectProjectionExpression
(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
-
ObjectProjectionExpression
-
ObjectProjectionExpression
public ObjectProjectionExpression(JmespathExpression left, JmespathExpression right, int line, int column)
-
-
Method Details
-
accept
Description copied from class:JmespathExpression
Visits a node using a double-dispatch visitor.- Overrides:
accept
in classProjectionExpression
- 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.
-