Class SliceExpression
- java.lang.Object
-
- software.amazon.smithy.jmespath.JmespathExpression
-
- software.amazon.smithy.jmespath.ast.SliceExpression
-
public final class SliceExpression extends JmespathExpression
Represents a slice expression, containing an optional zero-based start offset, zero-based stop offset, and step.- See Also:
- Slices
-
-
Constructor Summary
Constructors Constructor Description SliceExpression(java.lang.Integer start, java.lang.Integer stop, int step)
SliceExpression(java.lang.Integer start, java.lang.Integer stop, int step, 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.boolean
equals(java.lang.Object o)
java.util.OptionalInt
getStart()
int
getStep()
java.util.OptionalInt
getStop()
int
hashCode()
java.lang.String
toString()
-
-
-
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.
-
getStart
public java.util.OptionalInt getStart()
-
getStop
public java.util.OptionalInt getStop()
-
getStep
public int getStep()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-