Class AsmClassWriter.Default

java.lang.Object
net.bytebuddy.utility.AsmClassWriter.Default
All Implemented Interfaces:
AsmClassWriter
Enclosing interface:
AsmClassWriter

public static class AsmClassWriter.Default extends Object implements AsmClassWriter
A default implementation for ASM's ClassWriter.
  • Field Details

    • classWriter

      private final org.objectweb.asm.ClassWriter classWriter
      The 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 the ClassVisitor to use for writing the class file.
      Specified by:
      getVisitor in interface AsmClassWriter
      Returns:
      An appropriate class visitor.
    • getBinaryRepresentation

      public byte[] getBinaryRepresentation()
      Returns the binary representation of the created class file.
      Specified by:
      getBinaryRepresentation in interface AsmClassWriter
      Returns:
      The binary representation of the created class file.