Top Description
java.lang.classfile

public sealed Interface CodeElement

extends ClassFileElement
Known Direct Subinterfaces
java.lang.classfile.Instruction, java.lang.classfile.PseudoInstruction, java.lang.classfile.attribute.RuntimeInvisibleTypeAnnotationsAttribute, java.lang.classfile.attribute.RuntimeVisibleTypeAnnotationsAttribute, java.lang.classfile.attribute.StackMapTableAttribute
Known Direct Implementers
java.lang.classfile.CustomAttribute
Annotations
@PreviewFeature
feature:CLASSFILE_API
Imports
java.lang.classfile.attribute.RuntimeInvisibleTypeAnnotationsAttribute, .RuntimeVisibleTypeAnnotationsAttribute, .StackMapTableAttribute, jdk.internal.javac.PreviewFeature

A marker interface for elements that can appear when traversing a CodeModel or be presented to a CodeBuilder. 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.
Since
22