Package net.bytebuddy.utility
Class AsmClassWriter.ForAsm
- java.lang.Object
-
- net.bytebuddy.utility.AsmClassWriter.ForAsm
-
- All Implemented Interfaces:
AsmClassWriter
- Enclosing interface:
- AsmClassWriter
public static class AsmClassWriter.ForAsm extends java.lang.Object implements AsmClassWriter
Am implementation that uses ASM's internalClassWriter
.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.bytebuddy.utility.AsmClassWriter
AsmClassWriter.Factory, AsmClassWriter.ForAsm, AsmClassWriter.ForClassFileApi, AsmClassWriter.FrameComputingClassWriter, AsmClassWriter.SuperClassResolvingJdkClassWriter
-
-
Field Summary
Fields Modifier and Type Field Description private org.objectweb.asm.ClassWriter
classWriter
The represented class writer.
-
Constructor Summary
Constructors Constructor Description ForAsm(org.objectweb.asm.ClassWriter classWriter)
Creates a new class writer based upon ASM's own implementation.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
getBinaryRepresentation()
Returns the binary representation of the created class file.org.objectweb.asm.ClassVisitor
getVisitor()
Returns theClassVisitor
to use for writing the class file.
-
-
-
Method Detail
-
getVisitor
public org.objectweb.asm.ClassVisitor getVisitor()
Returns theClassVisitor
to use for writing the class file.- Specified by:
getVisitor
in interfaceAsmClassWriter
- Returns:
- An appropriate class visitor.
-
getBinaryRepresentation
public byte[] getBinaryRepresentation()
Returns the binary representation of the created class file.- Specified by:
getBinaryRepresentation
in interfaceAsmClassWriter
- Returns:
- The binary representation of the created class file.
-
-