Uses of Interface
java.lang.classfile.ClassModel
Packages that use ClassModel
Package
Description
Provides classfile parsing, generation, and transformation library.
Provides specific components, transformations, and tools built on top of the
java.lang.classfile
library.Provides interfaces describing classfile constant pool entries for the
java.lang.classfile
library.-
Uses of ClassModel in java.lang.classfile
Methods in java.lang.classfile that return ClassModelModifier and TypeMethodDescriptionClassFile.parse
(byte[] bytes) Parse a classfile into aClassModel
.default ClassModel
Parse a classfile into aClassModel
.Methods in java.lang.classfile that return types with arguments of type ClassModelModifier 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.Methods in java.lang.classfile with parameters of type ClassModelModifier and TypeMethodDescriptiondefault byte[]
ClassFile.transformClass
(ClassModel model, ClassTransform transform) Transform one classfile into a new classfile with the aid of aClassTransform
.byte[]
ClassFile.transformClass
(ClassModel model, ClassEntry newClassName, ClassTransform transform) Transform one classfile into a new classfile with the aid of aClassTransform
.default byte[]
ClassFile.transformClass
(ClassModel model, ClassDesc newClassName, ClassTransform transform) Transform one classfile into a new classfile with the aid of aClassTransform
.ClassFile.verify
(ClassModel model) Verify a classfile. -
Uses of ClassModel in java.lang.classfile.components
Methods in java.lang.classfile.components with parameters of type ClassModelModifier and TypeMethodDescriptiondefault byte[]
ClassRemapper.remapClass
(ClassFile context, ClassModel clm) Remaps the whole ClassModel into a new class file, including the class name. -
Uses of ClassModel in java.lang.classfile.constantpool
Methods in java.lang.classfile.constantpool with parameters of type ClassModelModifier and TypeMethodDescriptionstatic ConstantPoolBuilder
ConstantPoolBuilder.of
(ClassModel classModel) Returns a new constant pool builder.