Package net.bytebuddy.utility
Interface AsmClassWriter
-
- All Known Implementing Classes:
AsmClassWriter.ForAsm,AsmClassWriter.ForClassFileApi
public interface AsmClassWriterA facade for creating aClassVisitorthat writes a class file.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceAsmClassWriter.FactoryA factory for creating anAsmClassWriter.static classAsmClassWriter.ForAsmAm implementation that uses ASM's internalClassWriter.static classAsmClassWriter.ForClassFileApiA Class File API-based implementation for a class writer.static classAsmClassWriter.FrameComputingClassWriterA class writer that piggy-backs on Byte Buddy'sTypePoolto avoid class loading or look-up errors when redefining a class.static classAsmClassWriter.SuperClassResolvingJdkClassWriterA pseudo-JDK class writer that resolves super classes using aTypePool, to pass in the constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description byte[]getBinaryRepresentation()Returns the binary representation of the created class file.org.objectweb.asm.ClassVisitorgetVisitor()Returns theClassVisitorto use for writing the class file.
-
-
-
Method Detail
-
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.
-
-