Package net.bytebuddy.utility
Class AsmClassWriter.ForAsm
java.lang.Object
net.bytebuddy.utility.AsmClassWriter.ForAsm
- All Implemented Interfaces:
AsmClassWriter
- Enclosing interface:
AsmClassWriter
Am implementation that uses ASM's internal
ClassWriter
.-
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
FieldsModifier and TypeFieldDescriptionprivate final org.objectweb.asm.ClassWriter
The represented class writer. -
Constructor Summary
ConstructorsConstructorDescriptionForAsm
(org.objectweb.asm.ClassWriter classWriter) Creates a new class writer based upon ASM's own implementation. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
Returns the binary representation of the created class file.org.objectweb.asm.ClassVisitor
Returns theClassVisitor
to use for writing the class file.
-
Field Details
-
classWriter
private final org.objectweb.asm.ClassWriter classWriterThe represented class writer.
-
-
Constructor Details
-
ForAsm
public ForAsm(org.objectweb.asm.ClassWriter classWriter) Creates a new class writer based upon ASM's own implementation.- Parameters:
classWriter
- The represented class writer.
-
-
Method Details
-
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.
-