Interface CodeLocalsShifter

All Superinterfaces:
ClassFileTransformPREVIEW<CodeTransformPREVIEW,CodeElementPREVIEW,CodeBuilderPREVIEW>, CodeTransformPREVIEW

public sealed interface CodeLocalsShifter extends CodeTransformPREVIEW
CodeLocalsShifter is a preview API of the Java platform.
Programs can only use CodeLocalsShifter when preview features are enabled.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.
CodeLocalsShifterPREVIEW is a CodeTransformPREVIEW shifting locals to newly allocated positions to avoid conflicts during code injection. Locals pointing to the receiver or to method arguments slots are never shifted. All locals pointing beyond the method arguments are re-indexed in order of appearance.
Since:
22