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
-
public final class ObjectProjectionExpression extends ProjectionExpression
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:
- Wildcard Expressions
-
-
Constructor Summary
Constructors Constructor Description ObjectProjectionExpression(JmespathExpression left, JmespathExpression right)
ObjectProjectionExpression(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
-
ObjectProjectionExpression
public ObjectProjectionExpression(JmespathExpression left, JmespathExpression right)
-
ObjectProjectionExpression
public ObjectProjectionExpression(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.- 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.
-
-