Package Summary Overview Summary

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

# Interface ClassPrinter.LeafNode

All Superinterfaces:
  `ClassPrinter.NodePREVIEW`

Enclosing class:
  `ClassPrinterPREVIEW`

public static sealed interface ClassPrinter.LeafNode extends ClassPrinter.NodePREVIEW
`LeafNode` is a preview API of the Java platform.
Programs can only use `LeafNode` when preview features are enabled.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.
A leaf node holding single printable value.

Since:
  22

- ## Method Summary

  Modifier and Type
  Method
  Description
  `ConstantDesc`
  `value()`
  Printable node value

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

  `name, toJson, toXml, toYaml, walk`

- ## Method Details

  - ### value

    ConstantDesc value()
    Printable node value
    Returns:
      node value