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)
JmespathExpression
accept
in class JmespathExpression
T
- 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.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object