Class AsmClassWriter.ForClassFileApi
java.lang.Object
net.bytebuddy.utility.AsmClassWriter.ForClassFileApi
- All Implemented Interfaces:
AsmClassWriter
- Enclosing interface:
AsmClassWriter
A Class File API-based implementation for a class writer.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static interfaceAn API to interact withcodes.rafael.asmjdkbridge.JdkClassWriter.Nested classes/interfaces inherited from interface AsmClassWriter
AsmClassWriter.Factory, AsmClassWriter.ForAsm, AsmClassWriter.ForClassFileApi, AsmClassWriter.FrameComputingClassWriter, AsmClassWriter.SuperClassResolvingJdkClassWriter -
Constructor Summary
ConstructorsConstructorDescriptionForClassFileApi(org.objectweb.asm.ClassVisitor classWriter) Creates a new class file API-based 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.
-
Constructor Details
-
ForClassFileApi
public ForClassFileApi(org.objectweb.asm.ClassVisitor classWriter) Creates a new class file API-based 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.
-