Class ChildNodeList<Child extends ASTNode>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<T>
io.github.douira.glsl_transformer.ast.data.ProxyArrayList<Child>
io.github.douira.glsl_transformer.ast.data.ChildNodeList<Child>
- All Implemented Interfaces:
Serializable,Cloneable,Iterable<Child>,Collection<Child>,List<Child>,RandomAccess
A child list that notifies the given parent of child additions.
Implementation of the more complex RemovalProxyArray list isn't necessary
because each child notifies its previous parent of the parent change.
- See Also:
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount -
Constructor Summary
ConstructorsModifierConstructorDescriptionChildNodeList(int initialCapacity, InnerASTNode parent) ChildNodeList(InnerASTNode parent) protectedChildNodeList(Collection<? extends Child> c, InnerASTNode parent) -
Method Summary
Modifier and TypeMethodDescriptionstatic <Child extends ASTNode>
ChildNodeList<Child>collect(Stream<Child> stream, InnerASTNode parent) makeChildReplacer(ChildNodeList<Child> list, Child child) protected voidnotifyAddition(Child added) Methods inherited from class io.github.douira.glsl_transformer.ast.data.ProxyArrayList
add, add, addAll, addAll, replaceAll, setMethods inherited from class java.util.ArrayList
clear, clone, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, retainAll, size, sort, spliterator, subList, toArray, toArray, trimToSizeMethods inherited from class java.util.AbstractCollection
containsAll, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, stream, toArrayMethods inherited from interface java.util.List
containsAll
-
Constructor Details
-
ChildNodeList
-
ChildNodeList
-
ChildNodeList
-
-
Method Details
-
notifyAddition
- Specified by:
notifyAdditionin classProxyArrayList<Child extends ASTNode>
-
makeChildReplacer
protected static <Child extends ASTNode> Consumer<Child> makeChildReplacer(ChildNodeList<Child> list, Child child) -
collect
public static <Child extends ASTNode> ChildNodeList<Child> collect(Stream<Child> stream, InnerASTNode parent)
-