public final class IndexExpression extends JmespathExpression
Use a negative index to get an element from the end of the array
(e.g., -1 is used to get the last element of the array). If an
array element does not exist, a null value is returned.
| Constructor and Description |
|---|
IndexExpression(int index) |
IndexExpression(int index,
int line,
int column) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
accept(ExpressionVisitor<T> visitor)
Visits a node using a double-dispatch visitor.
|
boolean |
equals(java.lang.Object o) |
int |
getIndex()
Gets the index to retrieve.
|
int |
hashCode() |
java.lang.String |
toString() |
public IndexExpression(int index)
public IndexExpression(int index,
int line,
int column)
public <T> T accept(ExpressionVisitor<T> visitor)
JmespathExpressionaccept in class JmespathExpressionT - Type of value the visitor returns.visitor - Visitor to accept on the node.public int getIndex()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object