Class Subexpression
java.lang.Object
software.amazon.smithy.jmespath.JmespathExpression
software.amazon.smithy.jmespath.ast.BinaryExpression
software.amazon.smithy.jmespath.ast.Subexpression
Visits the left expression and passes its result to the right expression.
This AST node is used for both sub-expressions and pipe-expressions in the JMESPath specification.
- See Also:
-
Constructor Summary
ConstructorDescriptionSubexpression
(JmespathExpression left, JmespathExpression right) Subexpression
(JmespathExpression left, JmespathExpression right, boolean isPipe) Subexpression
(JmespathExpression left, JmespathExpression right, int line, int column) Subexpression
(JmespathExpression left, JmespathExpression right, int line, int column, boolean isPipe) -
Method Summary
Modifier and TypeMethodDescription<T> T
accept
(ExpressionVisitor<T> visitor) Visits a node using a double-dispatch visitor.boolean
isPipe()
Methods inherited from class software.amazon.smithy.jmespath.ast.BinaryExpression
equals, getLeft, getRight, hashCode, toString
-
Constructor Details
-
Subexpression
-
Subexpression
-
Subexpression
-
Subexpression
public Subexpression(JmespathExpression left, JmespathExpression right, int line, int column, boolean isPipe)
-
-
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.
-
isPipe
public boolean isPipe()- Returns:
- Returns true if this node was created from a pipe "|".
-