Class CritterParser

java.lang.Object
dev.morphia.critter.parser.java.CritterParser

public class CritterParser extends Object
Singleton parser providing ASMifier-based bytecode inspection and annotation descriptor resolution utilities.
  • Field Details

    • INSTANCE

      public static final CritterParser INSTANCE
      The singleton instance of this parser.
    • outputGenerated

      public File outputGenerated
      Optional output directory for writing generated source files; null disables file output.
  • Method Details

    • asmify

      public String asmify(byte[] bytes)
      Converts the given class bytecode to its ASMifier source representation.
      Parameters:
      bytes - the class bytecode
      Returns:
      the ASMifier source code as a string
    • propertyAnnotations

      public List<String> propertyAnnotations()
      Returns the ASM descriptors of all annotation types that mark a field or method as a mapped property.
      Returns:
      list of property annotation descriptors
    • transientAnnotations

      public List<String> transientAnnotations()
      Returns the ASM descriptors of all annotation types that mark a field or method as transient (not persisted).
      Returns:
      list of transient annotation descriptors