Class AccessorMethods

java.lang.Object
dev.morphia.critter.parser.generator.AccessorMethods
Direct Known Subclasses:
AddFieldAccessorMethods, AddMethodAccessorMethods

public abstract class AccessorMethods extends Object
Base class for bytecode generators that read and transform existing class files.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final Class<?>
    The entity class whose bytecode will be augmented.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Creates a new generator for the given entity class.
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract byte[]
    Emits the generated or augmented class bytecode.
    protected io.github.dmlloyd.classfile.ClassModel
    Reads the class file bytes for the given entity.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • entity

      protected final Class<?> entity
      The entity class whose bytecode will be augmented.
  • Constructor Details

    • AccessorMethods

      protected AccessorMethods(Class<?> entity)
      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.