Interface CodeElement
- All Superinterfaces:
ClassFileElementPREVIEW
- All Known Subinterfaces:
ArrayLoadInstructionPREVIEW,ArrayStoreInstructionPREVIEW,BranchInstructionPREVIEW,CharacterRangePREVIEW,ConstantInstructionPREVIEW,ConstantInstruction.ArgumentConstantInstructionPREVIEW,ConstantInstruction.IntrinsicConstantInstructionPREVIEW,ConstantInstruction.LoadConstantInstructionPREVIEW,ConvertInstructionPREVIEW,DiscontinuedInstructionPREVIEW,DiscontinuedInstruction.JsrInstructionPREVIEW,DiscontinuedInstruction.RetInstructionPREVIEW,ExceptionCatchPREVIEW,FieldInstructionPREVIEW,IncrementInstructionPREVIEW,InstructionPREVIEW,InvokeDynamicInstructionPREVIEW,InvokeInstructionPREVIEW,LabelTargetPREVIEW,LineNumberPREVIEW,LoadInstructionPREVIEW,LocalVariablePREVIEW,LocalVariableTypePREVIEW,LookupSwitchInstructionPREVIEW,MonitorInstructionPREVIEW,NewMultiArrayInstructionPREVIEW,NewObjectInstructionPREVIEW,NewPrimitiveArrayInstructionPREVIEW,NewReferenceArrayInstructionPREVIEW,NopInstructionPREVIEW,OperatorInstructionPREVIEW,PseudoInstructionPREVIEW,ReturnInstructionPREVIEW,RuntimeInvisibleTypeAnnotationsAttributePREVIEW,RuntimeVisibleTypeAnnotationsAttributePREVIEW,StackInstructionPREVIEW,StackMapTableAttributePREVIEW,StoreInstructionPREVIEW,TableSwitchInstructionPREVIEW,ThrowInstructionPREVIEW,TypeCheckInstructionPREVIEW
- All Known Implementing Classes:
CustomAttributePREVIEW
public sealed interface CodeElement
extends ClassFileElementPREVIEW
permits InstructionPREVIEW, PseudoInstructionPREVIEW, CustomAttributePREVIEW<T>, RuntimeVisibleTypeAnnotationsAttributePREVIEW, RuntimeInvisibleTypeAnnotationsAttributePREVIEW, StackMapTableAttributePREVIEW
CodeElement is a preview API of the Java platform.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.
A marker interface for elements that can appear when traversing
a
CodeModelPREVIEW or be presented to a CodeBuilderPREVIEW. Code elements
are either an InstructionPREVIEW, which models an instruction in the body
of a method, or a PseudoInstructionPREVIEW, which models metadata from
the code attribute, such as line number metadata, local variable metadata,
exception metadata, label target metadata, etc.- Since:
- 22
CodeElementwhen preview features are enabled.