Class AccessorMethods
java.lang.Object
dev.morphia.critter.parser.generator.AccessorMethods
- Direct Known Subclasses:
AddFieldAccessorMethods,AddMethodAccessorMethods
Base class for bytecode generators that read and transform existing class files.
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAccessorMethods(Class<?> entity) Creates a new generator for the given entity class. -
Method Summary
Modifier and TypeMethodDescriptionabstract byte[]emit()Emits the generated or augmented class bytecode.protected io.github.dmlloyd.classfile.ClassModelReads the class file bytes for the given entity.
-
Field Details
-
entity
The entity class whose bytecode will be augmented.
-
-
Constructor Details
-
AccessorMethods
Creates a new generator for the given entity class.
-
-
Method Details
-
emit
public abstract byte[] emit()Emits the generated or augmented class bytecode. -
readClassFiltering
protected io.github.dmlloyd.classfile.ClassModel readClassFiltering()Reads the class file bytes for the given entity.
-