- All Implemented Interfaces:
Iterable<ClassPrinter.Node>,Collection<ClassPrinter.Node>,List<ClassPrinter.Node>,SequencedCollection<ClassPrinter.Node>,ClassPrinter.ListNode,ClassPrinter.Node
- Enclosing class:
ClassPrinterImpl
public static final class ClassPrinterImpl.ListNodeImpl
extends AbstractList<ClassPrinter.Node>
implements ClassPrinter.ListNode
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount -
Constructor Summary
ConstructorsConstructorDescriptionListNodeImpl(ClassPrinterImpl.Style style, ConstantDesc name, Stream<ClassPrinter.Node> nodes) -
Method Summary
Methods inherited from class java.util.AbstractList
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subListMethods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.glavo.classfile.components.ClassPrinter.Node
toJson, toXml, toYamlMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
add, add, addAll, addAll, addFirst, addLast, clear, contains, containsAll, equals, getFirst, getLast, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeFirst, removeLast, replaceAll, retainAll, reversed, set, sort, spliterator, subList, toArray, toArray
-
Constructor Details
-
ListNodeImpl
public ListNodeImpl(ClassPrinterImpl.Style style, ConstantDesc name, Stream<ClassPrinter.Node> nodes)
-
-
Method Details
-
name
Description copied from interface:ClassPrinter.NodePrintable name of the node.- Specified by:
namein interfaceClassPrinter.Node- Returns:
- name of the node
-
walk
Description copied from interface:ClassPrinter.NodeWalks through the underlying tree.- Specified by:
walkin interfaceClassPrinter.Node- Returns:
- ordered stream of nodes
-
style
-
get
- Specified by:
getin interfaceList<ClassPrinter.Node>- Specified by:
getin classAbstractList<ClassPrinter.Node>
-
size
public int size()- Specified by:
sizein interfaceCollection<ClassPrinter.Node>- Specified by:
sizein interfaceList<ClassPrinter.Node>- Specified by:
sizein classAbstractCollection<ClassPrinter.Node>
-