Class Subexpression
- java.lang.Object
-
- software.amazon.smithy.jmespath.JmespathExpression
-
- software.amazon.smithy.jmespath.ast.BinaryExpression
-
- software.amazon.smithy.jmespath.ast.Subexpression
-
public final class Subexpression extends BinaryExpression
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:
- SubExpressions, Pipe expressions
-
-
Constructor Summary
Constructors Constructor Description Subexpression(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
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.boolean
isPipe()
-
Methods inherited from class software.amazon.smithy.jmespath.ast.BinaryExpression
equals, getLeft, getRight, hashCode, toString
-
-
-
-
Constructor Detail
-
Subexpression
public Subexpression(JmespathExpression left, JmespathExpression right)
-
Subexpression
public Subexpression(JmespathExpression left, JmespathExpression right, int line, int column)
-
Subexpression
public Subexpression(JmespathExpression left, JmespathExpression right, boolean isPipe)
-
Subexpression
public Subexpression(JmespathExpression left, JmespathExpression right, int line, int column, boolean isPipe)
-
-
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.
-
isPipe
public boolean isPipe()
- Returns:
- Returns true if this node was created from a pipe "|".
-
-