Uses of Interface
java.lang.classfile.ClassModel
Package
Description
Provides classfile parsing, generation, and transformation library.
Provides specific components, transformations, and tools built on top of the
java.lang.classfile
PREVIEW library.Provides interfaces describing classfile constant pool entries for the
java.lang.classfile
PREVIEW library.-
Uses of ClassModelPREVIEW in java.lang.classfilePREVIEW
Modifier and TypeMethodDescriptionClassFile.parse
(byte[] bytes) Parse a classfile into aClassModel
PREVIEW.default ClassModelPREVIEW
Parse a classfile into aClassModel
PREVIEW.Modifier and TypeMethodDescriptionFieldModel.parent()
Returns the class model this field is a member of, if known.MethodModel.parent()
Returns the class model this method is a member of, if known.Modifier and TypeMethodDescriptiondefault byte[]
ClassFile.transformClass
(ClassModelPREVIEW model, ClassTransformPREVIEW transform) Transform one classfile into a new classfile with the aid of aClassTransform
PREVIEW.byte[]
ClassFile.transformClass
(ClassModelPREVIEW model, ClassEntryPREVIEW newClassName, ClassTransformPREVIEW transform) Transform one classfile into a new classfile with the aid of aClassTransform
PREVIEW.default byte[]
ClassFile.transformClass
(ClassModelPREVIEW model, ClassDesc newClassName, ClassTransformPREVIEW transform) Transform one classfile into a new classfile with the aid of aClassTransform
PREVIEW.ClassFile.verify
(ClassModelPREVIEW model) Verify a classfile. -
Uses of ClassModelPREVIEW in java.lang.classfile.componentsPREVIEW
Modifier and TypeMethodDescriptiondefault byte[]
ClassRemapper.remapClass
(ClassFilePREVIEW context, ClassModelPREVIEW clm) Remaps the whole ClassModel into a new class file, including the class name. -
Uses of ClassModelPREVIEW in java.lang.classfile.constantpoolPREVIEW
Modifier and TypeMethodDescriptionstatic ConstantPoolBuilderPREVIEW
ConstantPoolBuilder.of
(ClassModelPREVIEW classModel) Returns a new constant pool builder.