Package com.strobel.expressions
Class ExpressionList<T extends Expression>
java.lang.Object
com.strobel.expressions.ExpressionList<T>
- All Implemented Interfaces:
Iterable<T>
,RandomAccess
- Direct Known Subclasses:
BlockExpressionList
,ParameterExpressionList
public class ExpressionList<T extends Expression>
extends Object
implements Iterable<T>, RandomAccess
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAll
(int index, ExpressionList<T> c) final ExpressionList
<T> addAll
(ExpressionList<T> c) final ExpressionList
<T> boolean
static <T extends Expression>
ExpressionList<T> empty()
get
(int index) getRange
(int fromIndex, int toIndex) int
boolean
isEmpty()
iterator()
iterator
(int index) int
lastIndexOf
(T expression) protected ExpressionList
<T> newInstance
(T[] expressions) remove
(int index) removeAll
(ExpressionList<? extends T> c) final ExpressionList
<T> retainAll
(ExpressionList<? extends T> c) final ExpressionList
<T> int
size()
T[]
toArray()
<T> T[]
toArray
(T[] a) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
EMPTY
-
_expressions
-
-
Constructor Details
-
ExpressionList
-
-
Method Details
-
empty
-
newInstance
-
size
public int size() -
isEmpty
public boolean isEmpty() -
contains
-
iterator
- Specified by:
iterator
in interfaceIterable<T extends Expression>
-
iterator
-
toArray
-
toArray
public <T> T[] toArray(T[] a) -
add
-
remove
-
addAll
-
addAll
-
addAll
-
addAll
-
removeAll
-
removeAll
-
retainAll
-
retainAll
-
get
-
replace
-
add
-
remove
-
indexOf
-
lastIndexOf
-
getRange
-