Package net.bytebuddy.utility
Class AsmClassWriter.Default
java.lang.Object
net.bytebuddy.utility.AsmClassWriter.Default
- All Implemented Interfaces:
AsmClassWriter
- Enclosing interface:
AsmClassWriter
A default implementation for ASM's
ClassWriter.-
Nested Class Summary
Nested classes/interfaces inherited from interface net.bytebuddy.utility.AsmClassWriter
AsmClassWriter.Default, AsmClassWriter.Factory, AsmClassWriter.FrameComputingClassWriter -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.objectweb.asm.ClassWriterThe represented class writer. -
Constructor Summary
ConstructorsConstructorDescriptionDefault(org.objectweb.asm.ClassWriter classWriter) Creates a new default class writer. -
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.
-
Field Details
-
classWriter
private final org.objectweb.asm.ClassWriter classWriterThe represented class writer.
-
-
Constructor Details
-
Default
public Default(org.objectweb.asm.ClassWriter classWriter) Creates a new default class writer.- Parameters:
classWriter- The represented class writer.
-
-
Method Details
-
getVisitor
public org.objectweb.asm.ClassVisitor getVisitor()Returns theClassVisitorto use for writing the class file.- Specified by:
getVisitorin interfaceAsmClassWriter- Returns:
- An appropriate class visitor.
-
getBinaryRepresentation
public byte[] getBinaryRepresentation()Returns the binary representation of the created class file.- Specified by:
getBinaryRepresentationin interfaceAsmClassWriter- Returns:
- The binary representation of the created class file.
-