Module java.base

Interface CodeAttribute

All Superinterfaces:
AttributePREVIEW<CodeAttributePREVIEW>, AttributedElementPREVIEW, ClassFileElementPREVIEW, CodeModelPREVIEW, CompoundElementPREVIEW<CodeElementPREVIEW>, Iterable<CodeElementPREVIEW>, MethodElementPREVIEW, WritableElementPREVIEW<CodeAttributePREVIEW>

public sealed interface CodeAttribute extends AttributePREVIEW<CodeAttributePREVIEW>, CodeModelPREVIEW
CodeAttribute is a preview API of the Java platform.
Programs can only use CodeAttribute when preview features are enabled.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.
Models the Code attribute 4.7.3, appears on non-native, non-abstract methods and contains the bytecode of the method body. Delivered as a MethodElementPREVIEW when traversing the elements of a MethodModelPREVIEW.

The attribute does not permit multiple instances in a given location. Subsequent occurrence of the attribute takes precedence during the attributed element build or transformation.

Since:
22