APIdia Launch Partner
Top Description
java.lang.classfile

public sealed Interface CodeElement

extends ClassFileElement
permits Instruction, PseudoInstruction, CustomAttribute<T>, RuntimeVisibleTypeAnnotationsAttribute, RuntimeInvisibleTypeAnnotationsAttribute, StackMapTableAttribute, UnknownAttribute
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, java.lang.classfile.attribute.UnknownAttribute
Known Direct Implementers
java.lang.classfile.CustomAttribute
Imports
java.lang.classfile.attribute.RuntimeInvisibleTypeAnnotationsAttribute, .RuntimeVisibleTypeAnnotationsAttribute, .StackMapTableAttribute, .UnknownAttribute

Marker interface for a member element of a CodeModel. Such an element can appear when traversing a CodeModel unless otherwise specified, be supplied to a CodeBuilder, and be processed by a CodeTransform.

Code elements can be categorized into Instruction, PseudoInstruction, and Attribute. Unlike in other CompoundElement, the order of elements for all Instructions and some PseudoInstructions is significant.

Since
24
See Also
Membership Elements, ClassElement, MethodElement, FieldElement