T
- the type of the data to pickpublic class PickExpression<T> extends AbstractDeferredExpression<T> implements java.io.Serializable
Expression
of, Iterable
. The PickExpression.Mode
and the
offset define the resulting element.PickResolver
,
Serialized FormModifier and Type | Class and Description |
---|---|
static class |
PickExpression.Mode |
Modifier | Constructor and Description |
---|---|
protected |
PickExpression(Expression<? extends java.lang.Iterable<T>> iterable,
int offset,
PickExpression.Mode mode) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
static <T> PickExpression<T> |
fromFirst(Expression<? extends java.lang.Iterable<T>> iterable,
int offset) |
static <T> PickExpression<T> |
fromLast(Expression<? extends java.lang.Iterable<T>> iterable,
int offset) |
java.util.List<? extends Node> |
getChildren()
Has to return the children of the node.
|
int |
hashCode() |
Expression<? extends java.lang.Iterable<T>> |
iterableExpression() |
PickExpression.Mode |
mode() |
int |
offset() |
java.lang.String |
toString() |
get, isResolved
protected PickExpression(Expression<? extends java.lang.Iterable<T>> iterable, int offset, PickExpression.Mode mode)
public static <T> PickExpression<T> fromFirst(Expression<? extends java.lang.Iterable<T>> iterable, int offset)
public static <T> PickExpression<T> fromLast(Expression<? extends java.lang.Iterable<T>> iterable, int offset)
public java.util.List<? extends Node> getChildren()
Node
null
getChildren
in interface Node
public Expression<? extends java.lang.Iterable<T>> iterableExpression()
public int offset()
public PickExpression.Mode mode()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object