Package net.bytebuddy.utility
Class AsmClassWriter.Default
- java.lang.Object
-
- net.bytebuddy.utility.AsmClassWriter.Default
-
- All Implemented Interfaces:
AsmClassWriter
- Enclosing interface:
- AsmClassWriter
public static class AsmClassWriter.Default extends java.lang.Object implements AsmClassWriter
A default implementation for ASM'sClassWriter
.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.bytebuddy.utility.AsmClassWriter
AsmClassWriter.Default, AsmClassWriter.Factory, AsmClassWriter.FrameComputingClassWriter
-
-
Field Summary
Fields Modifier and Type Field Description private org.objectweb.asm.ClassWriter
classWriter
The represented class writer.
-
Constructor Summary
Constructors Constructor Description Default(org.objectweb.asm.ClassWriter classWriter)
Creates a new default class writer.
-
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.
-
-