Module java.base
Package java.lang.classfile.componentsPREVIEW

# Interface ClassPrinter.ListNode

All Superinterfaces:
  `ClassPrinter.NodePREVIEW`, `Collection<ClassPrinter.NodePREVIEW>`, `Iterable<ClassPrinter.NodePREVIEW>`, `List<ClassPrinter.NodePREVIEW>`, `SequencedCollection<ClassPrinter.NodePREVIEW>`

Enclosing class:
  `ClassPrinterPREVIEW`

public static sealed interface ClassPrinter.ListNode extends ClassPrinter.NodePREVIEW, List<ClassPrinter.NodePREVIEW>
`ListNode` is a preview API of the Java platform.
Programs can only use `ListNode` when preview features are enabled.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.
A tree node holding `List` of nested nodes.

Since:
  22

- ## Method Summary

  ### Methods declared in interface java.lang.classfile.components.ClassPrinter.NodePREVIEW

  `name, toJson, toXml, toYaml, walk`

  ### Methods declared in interface java.util.Collection

  `parallelStream, removeIf, stream, toArray`

  ### Methods declared in interface java.lang.Iterable

  `forEach`

  ### Methods declared in interface java.util.List

  `add, add, addAll, addAll, addFirst, addLast, clear, contains, containsAll, equals, get, getFirst, getLast, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeFirst, removeLast, replaceAll, retainAll, reversed, set, size, sort, spliterator, subList, toArray, toArray`