Uses of Interface
java.lang.classfile.ClassModel
Package
Description
Provides classfile parsing, generation, and transformation library.
Provides interfaces describing classfile constant pool entries for the
java.lang.classfile
library.-
Uses of ClassModel in java.lang.classfile
Modifier and TypeMethodDescriptionClassFile.parse
(byte[] bytes) Parse a classfile into aClassModel
.default ClassModel
Parse a classfile into aClassModel
.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
(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.constantpool
Modifier and TypeMethodDescriptionstatic ConstantPoolBuilder
ConstantPoolBuilder.of
(ClassModel classModel) Returns a new constant pool builder.