Uses of Interface java.lang.classfile.CompoundElement (Java SE 23 & JDK 23)
Description: use: module: java.base, package: java.lang.classfile, interface: CompoundElement

# Uses of Interface
java.lang.classfile.CompoundElement

Packages that use CompoundElementPREVIEW
Package
Description
java.lang.classfile
Provides classfile parsing, generation, and transformation library.
java.lang.classfile.attribute
Provides interfaces describing classfile attributes for the `java.lang.classfile`PREVIEW library.
java.lang.classfile.components
Provides specific components, transformations, and tools built on top of the `java.lang.classfile`PREVIEW library.

- ## Uses of CompoundElementPREVIEW in java.lang.classfilePREVIEW

  Subinterfaces of CompoundElementPREVIEW in java.lang.classfilePREVIEW
  Modifier and Type
  Interface
  Description
  `interface`
  `ClassModelPREVIEW`
  Preview.
  Models a classfile.
  `interface`
  `CodeModelPREVIEW`
  Preview.
  Models the body of a method (the `Code` attribute).
  `interface`
  `FieldModelPREVIEW`
  Preview.
  Models a field.
  `interface`
  `MethodModelPREVIEW`
  Preview.
  Models a method.
  Methods in java.lang.classfilePREVIEW with parameters of type CompoundElementPREVIEW
  Modifier and Type
  Method
  Description
  `default void`
  ClassFileBuilder.`transform(CompoundElementPREVIEW<E> model, ClassFileTransformPREVIEW<?,E,B> transform)`
  Apply a transform to a model, directing results to this builder.

- ## Uses of CompoundElementPREVIEW in java.lang.classfile.attributePREVIEW

  Subinterfaces of CompoundElementPREVIEW in java.lang.classfile.attributePREVIEW
  Modifier and Type
  Interface
  Description
  `interface`
  `CodeAttributePREVIEW`
  Preview.
  Models the `Code` attribute 4.7.3, appears on non-native, non-abstract methods and contains the bytecode of the method body.

- ## Uses of CompoundElementPREVIEW in java.lang.classfile.componentsPREVIEW

  Methods in java.lang.classfile.componentsPREVIEW with parameters of type CompoundElementPREVIEW
  Modifier and Type
  Method
  Description
  `static void`
  ClassPrinter.`toJson(CompoundElementPREVIEW<?> model, ClassPrinter.VerbosityPREVIEW verbosity, Consumer<String> out)`
  Prints provided model as structured text in JSON format.
  `static ClassPrinter.MapNodePREVIEW`
  ClassPrinter.`toTree(CompoundElementPREVIEW<?> model, ClassPrinter.VerbosityPREVIEW verbosity)`
  Exports provided model into a tree of printable nodes.
  `static void`
  ClassPrinter.`toXml(CompoundElementPREVIEW<?> model, ClassPrinter.VerbosityPREVIEW verbosity, Consumer<String> out)`
  Prints provided model as structured text in XML format.
  `static void`
  ClassPrinter.`toYaml(CompoundElementPREVIEW<?> model, ClassPrinter.VerbosityPREVIEW verbosity, Consumer<String> out)`
  Prints provided model as structured text in YAML format.