Package dev.morphia.critter.parser.java
Class CritterParser
java.lang.Object
dev.morphia.critter.parser.java.CritterParser
Singleton parser providing ASMifier-based bytecode inspection and annotation descriptor resolution utilities.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final CritterParserThe singleton instance of this parser.Optional output directory for writing generated source files;nulldisables file output. -
Method Summary
Modifier and TypeMethodDescriptionasmify(byte[] bytes) Converts the given class bytecode to its ASMifier source representation.Returns the ASM descriptors of all annotation types that mark a field or method as a mapped property.Returns the ASM descriptors of all annotation types that mark a field or method as transient (not persisted).
-
Field Details
-
INSTANCE
The singleton instance of this parser. -
outputGenerated
Optional output directory for writing generated source files;nulldisables file output.
-
-
Method Details
-
asmify
Converts the given class bytecode to its ASMifier source representation.- Parameters:
bytes- the class bytecode- Returns:
- the ASMifier source code as a 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
Returns the ASM descriptors of all annotation types that mark a field or method as transient (not persisted).- Returns:
- list of transient annotation descriptors
-