Class AsmClassWriter.Factory.Default.NonRetainingAsmClassReader

java.lang.Object
net.bytebuddy.utility.AsmClassWriter.Factory.Default.NonRetainingAsmClassReader
All Implemented Interfaces:
AsmClassReader
Enclosing class:
AsmClassWriter.Factory.Default

public static class AsmClassWriter.Factory.Default.NonRetainingAsmClassReader extends Object implements AsmClassReader
A class reader that does not retain a compatible AsmClassWriter implementation.
  • Field Details

    • delegate

      private final AsmClassReader delegate
      The delegate implementation.
  • Constructor Details

    • NonRetainingAsmClassReader

      public NonRetainingAsmClassReader(AsmClassReader delegate)
      Creates a new non-retaining ASM class writer.
      Parameters:
      delegate - The delegate implementation.
  • Method Details

    • unwrap

      @MaybeNull public <T> T unwrap(Class<T> type)
      Unwraps a class reader to the underlying reader mechanism.
      Specified by:
      unwrap in interface AsmClassReader
      Type Parameters:
      T - The type to unwrap.
      Parameters:
      type - The type of the reader that should be unwrapped.
      Returns:
      The unwrapped instance or null if the underlying instance does not represent this type.
    • toWriter

      @AlwaysNull public AsmClassWriter toWriter(int flags, TypePool typePool)
    • accept

      public void accept(org.objectweb.asm.ClassVisitor classVisitor, int flags)
      Accepts a class visitor to read a class.
      Specified by:
      accept in interface AsmClassReader
      Parameters:
      classVisitor - The class visitor who should be used as a callback for a class file.
      flags - The flags to consider while reading a class.