# Uses of Interface
java.lang.classfile.CodeElement

Packages that use CodeElementPREVIEW
Package
Description
java.lang.classfile
Provides classfile parsing, generation, and transformation library.
java.lang.classfile.attribute
Provides interfaces describing classfile attributes for the `java.lang.classfile`PREVIEW library.
java.lang.classfile.instruction
Provides interfaces describing code instructions for the `java.lang.classfile`PREVIEW library.

- ## Uses of CodeElementPREVIEW in java.lang.classfilePREVIEW

  Subinterfaces of CodeElementPREVIEW in java.lang.classfilePREVIEW
  Modifier and Type
  Interface
  Description
  `interface`
  `InstructionPREVIEW`
  Preview.
  Models an executable instruction in a method body.
  `interface`
  `PseudoInstructionPREVIEW`
  Preview.
  Models metadata about a `CodeAttribute`PREVIEW, such as entries in the exception table, line number table, local variable table, or the mapping between instructions and labels.
  Classes in java.lang.classfilePREVIEW that implement CodeElementPREVIEW
  Modifier and Type
  Class
  Description
  `class`
  `CustomAttributePREVIEW<T extends CustomAttributePREVIEW<T>>`
  Preview.
  Models a non-standard attribute of a classfile.
  Methods in java.lang.classfilePREVIEW that return types with arguments of type CodeElementPREVIEW
  Modifier and Type
  Method
  Description
  `default ClassFileTransform.ResolvedTransformPREVIEW<CodeElementPREVIEW>`
  CodeTransform.`resolve(CodeBuilderPREVIEW builder)`

- ## Uses of CodeElementPREVIEW in java.lang.classfile.attributePREVIEW

  Subinterfaces of CodeElementPREVIEW in java.lang.classfile.attributePREVIEW
  Modifier and Type
  Interface
  Description
  `interface`
  `RuntimeInvisibleTypeAnnotationsAttributePREVIEW`
  Preview.
  Models the `RuntimeInvisibleTypeAnnotations` attribute 4.7.21, which can appear on classes, methods, fields, and code attributes.
  `interface`
  `RuntimeVisibleTypeAnnotationsAttributePREVIEW`
  Preview.
  Models the `RuntimeVisibleTypeAnnotations` attribute 4.7.20, which can appear on classes, methods, fields, and code attributes.
  `interface`
  `StackMapTableAttributePREVIEW`
  Preview.
  Models the `StackMapTable` attribute 4.7.4, which can appear on a `Code` attribute.

- ## Uses of CodeElementPREVIEW in java.lang.classfile.instructionPREVIEW

  Subinterfaces of CodeElementPREVIEW in java.lang.classfile.instructionPREVIEW
  Modifier and Type
  Interface
  Description
  `interface`
  `ArrayLoadInstructionPREVIEW`
  Preview.
  Models an array load instruction in the `code` array of a `Code` attribute.
  `interface`
  `ArrayStoreInstructionPREVIEW`
  Preview.
  Models an array store instruction in the `code` array of a `Code` attribute.
  `interface`
  `BranchInstructionPREVIEW`
  Preview.
  Models a branching instruction (conditional or unconditional) in the `code` array of a `Code` attribute.
  `interface`
  `CharacterRangePREVIEW`
  Preview.
  A pseudo-instruction which models a single entry in the `CharacterRangeTableAttribute`PREVIEW.
  `interface`
  `ConstantInstructionPREVIEW`
  Preview.
  Models a constant-load instruction in the `code` array of a `Code` attribute, including "intrinsic constant" instructions (e.g., `iconst_0`), "argument constant" instructions (e.g., `bipush`), and "load constant" instructions (e.g., `LDC`).
  `static interface`
  `ConstantInstruction.ArgumentConstantInstructionPREVIEW`
  Preview.
  Models an "argument constant" instruction (e.g., `bipush`).
  `static interface`
  `ConstantInstruction.IntrinsicConstantInstructionPREVIEW`
  Preview.
  Models an "intrinsic constant" instruction (e.g., `iconst_0`).
  `static interface`
  `ConstantInstruction.LoadConstantInstructionPREVIEW`
  Preview.
  Models a "load constant" instruction (e.g., `ldc`).
  `interface`
  `ConvertInstructionPREVIEW`
  Preview.
  Models a primitive conversion instruction in the `code` array of a `Code` attribute, such as `i2l`.
  `interface`
  `DiscontinuedInstructionPREVIEW`
  Preview.
  Models instruction discontinued from the `code` array of a `Code` attribute.
  `static interface`
  `DiscontinuedInstruction.JsrInstructionPREVIEW`
  Preview.
  Models JSR and JSR_W instructions discontinued from the `code` array of a `Code` attribute since class file version 51.0.
  `static interface`
  `DiscontinuedInstruction.RetInstructionPREVIEW`
  Preview.
  Models RET and RET_W instructions discontinued from the `code` array of a `Code` attribute since class file version 51.0.
  `interface`
  `ExceptionCatchPREVIEW`
  Preview.
  A pseudo-instruction modeling an entry in the exception table of a code attribute.
  `interface`
  `FieldInstructionPREVIEW`
  Preview.
  Models a field access instruction in the `code` array of a `Code` attribute.
  `interface`
  `IncrementInstructionPREVIEW`
  Preview.
  Models a local variable increment instruction in the `code` array of a `Code` attribute.
  `interface`
  `InvokeDynamicInstructionPREVIEW`
  Preview.
  Models an `invokedynamic` instruction in the `code` array of a `Code` attribute.
  `interface`
  `InvokeInstructionPREVIEW`
  Preview.
  Models a method invocation instruction in the `code` array of a `Code` attribute, other than `invokedynamic`.
  `interface`
  `LabelTargetPREVIEW`
  Preview.
  A pseudo-instruction which indicates that the specified label corresponds to the current position in the `Code` attribute.
  `interface`
  `LineNumberPREVIEW`
  Preview.
  A pseudo-instruction which models a single entry in the `LineNumberTableAttribute`PREVIEW.
  `interface`
  `LoadInstructionPREVIEW`
  Preview.
  Models a local variable load instruction in the `code` array of a `Code` attribute.
  `interface`
  `LocalVariablePREVIEW`
  Preview.
  A pseudo-instruction which models a single entry in the `LocalVariableTableAttribute`PREVIEW.
  `interface`
  `LocalVariableTypePREVIEW`
  Preview.
  A pseudo-instruction which models a single entry in the `LocalVariableTypeTableAttribute`PREVIEW.
  `interface`
  `LookupSwitchInstructionPREVIEW`
  Preview.
  Models a `lookupswitch` instruction in the `code` array of a `Code` attribute.
  `interface`
  `MonitorInstructionPREVIEW`
  Preview.
  Models a `monitorenter` or `monitorexit` instruction in the `code` array of a `Code` attribute.
  `interface`
  `NewMultiArrayInstructionPREVIEW`
  Preview.
  Models a `multianewarray` invocation instruction in the `code` array of a `Code` attribute.
  `interface`
  `NewObjectInstructionPREVIEW`
  Preview.
  Models a `new` instruction in the `code` array of a `Code` attribute.
  `interface`
  `NewPrimitiveArrayInstructionPREVIEW`
  Preview.
  Models a `newarray` invocation instruction in the `code` array of a `Code` attribute.
  `interface`
  `NewReferenceArrayInstructionPREVIEW`
  Preview.
  Models a `anewarray` invocation instruction in the `code` array of a `Code` attribute.
  `interface`
  `NopInstructionPREVIEW`
  Preview.
  Models a `nop` invocation instruction in the `code` array of a `Code` attribute.
  `interface`
  `OperatorInstructionPREVIEW`
  Preview.
  Models an arithmetic operator instruction in the `code` array of a `Code` attribute.
  `interface`
  `ReturnInstructionPREVIEW`
  Preview.
  Models a return-from-method instruction in the `code` array of a `Code` attribute.
  `interface`
  `StackInstructionPREVIEW`
  Preview.
  Models a stack manipulation instruction in the `code` array of a `Code` attribute.
  `interface`
  `StoreInstructionPREVIEW`
  Preview.
  Models a local variable store instruction in the `code` array of a `Code` attribute.
  `interface`
  `TableSwitchInstructionPREVIEW`
  Preview.
  Models a `tableswitch` instruction in the `code` array of a `Code` attribute.
  `interface`
  `ThrowInstructionPREVIEW`
  Preview.
  Models an `athrow` instruction in the `code` array of a `Code` attribute.
  `interface`
  `TypeCheckInstructionPREVIEW`
  Preview.
  Models an `instanceof` or `checkcast` instruction in the `code` array of a `Code` attribute.