Interface AsmClassWriter
- All Known Implementing Classes:
AsmClassWriter.ForAsm, AsmClassWriter.ForClassFileApi
public interface AsmClassWriter
A facade for creating a
ClassVisitor that writes a class file.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceA factory for creating anAsmClassWriter.static classAm implementation that uses ASM's internalClassWriter.static classA Class File API-based implementation for a class writer.static classA class writer that piggy-backs on Byte Buddy'sTypePoolto avoid class loading or look-up errors when redefining a class.static classA pseudo-JDK class writer that resolves super classes using aTypePool, to pass in the constructor. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]Returns the binary representation of the created class file.org.objectweb.asm.ClassVisitorReturns theClassVisitorto use for writing the class file.
-
Method Details
-
getVisitor
org.objectweb.asm.ClassVisitor getVisitor()Returns theClassVisitorto use for writing the class file.- Returns:
- An appropriate class visitor.
-
getBinaryRepresentation
byte[] getBinaryRepresentation()Returns the binary representation of the created class file.- Returns:
- The binary representation of the created class file.
-