ClassFile.Option (Java SE 23 & JDK 23)
Description: declaration: module: java.base, package: java.lang.classfile, interface: ClassFile, interface: Option
Keywords: java.lang.classfile.ClassFile.Option interface

# Interface ClassFile.Option

All Known Subinterfaces:
  `ClassFile.AttributeMapperOptionPREVIEW`, `ClassFile.ClassHierarchyResolverOptionPREVIEW`

All Known Implementing Classes:
  `ClassFile.AttributesProcessingOptionPREVIEW`, `ClassFile.ConstantPoolSharingOptionPREVIEW`, `ClassFile.DeadCodeOptionPREVIEW`, `ClassFile.DeadLabelsOptionPREVIEW`, `ClassFile.DebugElementsOptionPREVIEW`, `ClassFile.LineNumbersOptionPREVIEW`, `ClassFile.ShortJumpsOptionPREVIEW`, `ClassFile.StackMapsOptionPREVIEW`

Enclosing interface:
  `ClassFilePREVIEW`

public static sealed interface ClassFile.Option permits ClassFile.AttributeMapperOptionPREVIEW, ClassFile.ClassHierarchyResolverOptionPREVIEW, ClassFile.ConstantPoolSharingOptionPREVIEW, ClassFile.DeadCodeOptionPREVIEW, ClassFile.DeadLabelsOptionPREVIEW, ClassFile.DebugElementsOptionPREVIEW, ClassFile.LineNumbersOptionPREVIEW, ClassFile.ShortJumpsOptionPREVIEW, ClassFile.StackMapsOptionPREVIEW, ClassFile.AttributesProcessingOptionPREVIEW
`Option` is a preview API of the Java platform.
Programs can only use `Option` when preview features are enabled.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.
An option that affects the parsing and writing of classfiles.

Since:
  22