Module java.base
Package java.lang.classfile

# Interface CodeElement

≠
public abstract sealed interface CodeElement
extends java.lang.classfile.ClassFileElement
permits java.lang.classfile.CustomAttribute<T>, java.lang.classfile.Instruction, java.lang.classfile.PseudoInstruction, java.lang.classfile.attribute.RuntimeInvisibleTypeAnnotationsAttribute, java.lang.classfile.attribute.RuntimeVisibleTypeAnnotationsAttribute, java.lang.classfile.attribute.StackMapTableAttribute
Comparing master and cf

All Superinterfaces:
  `ClassFileElement`

All Known Subinterfaces:
  `ArrayLoadInstruction, ArrayStoreInstruction, BranchInstruction, CharacterRange, ConstantInstruction, ConstantInstruction.ArgumentConstantInstruction, ConstantInstruction.IntrinsicConstantInstruction, ConstantInstruction.LoadConstantInstruction, ConvertInstruction, DiscontinuedInstruction, DiscontinuedInstruction.JsrInstruction, DiscontinuedInstruction.RetInstruction, ExceptionCatch, FieldInstruction, IncrementInstruction, Instruction, InvokeDynamicInstruction, InvokeInstruction, LabelTarget, LineNumber, LoadInstruction, LocalVariable, LocalVariableType, LookupSwitchInstruction, MonitorInstruction, NewMultiArrayInstruction, NewObjectInstruction, NewPrimitiveArrayInstruction, NewReferenceArrayInstruction, NopInstruction, OperatorInstruction, PseudoInstruction, ReturnInstruction, RuntimeInvisibleTypeAnnotationsAttribute, RuntimeVisibleTypeAnnotationsAttribute, StackInstruction, StackMapTableAttribute, StoreInstruction, TableSwitchInstruction, ThrowInstruction, TypeCheckInstruction`

All Known Implementing Classes:
  `CustomAttribute`

public sealed interface CodeElement extends ClassFileElement permits Instruction, PseudoInstruction, CustomAttribute<T>, RuntimeVisibleTypeAnnotationsAttribute, RuntimeInvisibleTypeAnnotationsAttribute, StackMapTableAttribute
A marker Marker interface for elements that a member element of a `CodeModel` . Such an element can appear when traversing a `CodeModel` or be presented unless otherwise specified, be supplied to a `CodeBuilder` , and be processed by a `CodeTransform` .

Moved to a paragraph. Moved to a paragraph.Code elements

are either an `Instruction` , which models an instruction in the body of a method, or a `PseudoInstruction` , which models metadata from the code attribute, such as line number metadata, local variable metadata, exception metadata, label target metadata, etc

can be categorized into `Instruction` , `PseudoInstruction` , and `Attribute` . Unlike in other `CompoundElement` , the order of elements for all `Instruction` s and some `PseudoInstruction` s is significantMoved to a paragraph..

Sealed Class Hierarchy Graph:
Since:
  24
See Also:
  Moved to a definition list with class notes.Moved to a definition.Moved to an unordered list with class tag-list.
  - Membership Elements
  - `ClassElement`
  - `MethodElement`
  - `FieldElement`

## Summary

Differences
| Elements | Comments | Descriptions | Total
Added | Changed | Removed | Added | Changed | Removed | Added | Changed | Removed
--- | --- | --- | --- | --- | --- | --- | --- | ---
CodeElement |  |  |  |  |  |  | 7 | 4 | 3 | 14
Total |  |  |  |  |  |  | 7 | 4 | 3 | 14