Class TypeWriter.Default.ForCreation.CreationClassVisitor

java.lang.Object
org.objectweb.asm.ClassVisitor
net.bytebuddy.utility.visitor.MetadataAwareClassVisitor
net.bytebuddy.dynamic.scaffold.TypeWriter.Default.ForCreation.CreationClassVisitor
Enclosing class:
TypeWriter.Default.ForCreation<U>

protected class TypeWriter.Default.ForCreation.CreationClassVisitor extends MetadataAwareClassVisitor
A class visitor that applies the subclass creation as a wrapper.
  • Field Details

  • Constructor Details

    • CreationClassVisitor

      protected CreationClassVisitor(org.objectweb.asm.ClassVisitor classVisitor, Implementation.Context.ExtractableView implementationContext)
      Creates a new wrapper visitor.
      Parameters:
      classVisitor - The class visitor being wrapped.
      implementationContext - The implementation context to apply.
  • Method Details

    • onAfterAttributes

      protected void onAfterAttributes()
      Description copied from class: MetadataAwareClassVisitor
      Invoked if the attribute visitation is about to complete.
      Overrides:
      onAfterAttributes in class MetadataAwareClassVisitor
    • onVisitInnerClass

      protected void onVisitInnerClass(String internalName, @MaybeNull String outerName, @MaybeNull String innerName, int modifiers)
      Description copied from class: MetadataAwareClassVisitor
      An order-sensitive invocation of ClassVisitor.visitInnerClass(String, String, String, int).
      Overrides:
      onVisitInnerClass in class MetadataAwareClassVisitor
      Parameters:
      internalName - The internal name of the inner class.
      outerName - The internal name of the outer class or null for a member class.
      innerName - The inner class's simple name or null for an anonymous class.
      modifiers - The inner class's source code modifiers.
    • onVisitField

      protected org.objectweb.asm.FieldVisitor onVisitField(int modifiers, String name, String descriptor, @MaybeNull String signature, @MaybeNull Object value)
      Description copied from class: MetadataAwareClassVisitor
      An order-sensitive invocation of ClassVisitor.visitField(int, String, String, String, Object).
      Overrides:
      onVisitField in class MetadataAwareClassVisitor
      Parameters:
      modifiers - The field's modifiers.
      name - The field's internal name.
      descriptor - The field type's descriptor.
      signature - The field's generic signature or null if the field is not generic.
      value - The field's default value or null if no such value exists.
      Returns:
      A field visitor to visit the field or null to ignore it.
    • onVisitMethod

      protected org.objectweb.asm.MethodVisitor onVisitMethod(int modifiers, String internalName, String descriptor, @MaybeNull String signature, @MaybeNull String[] exception)
      Description copied from class: MetadataAwareClassVisitor
      An order-sensitive invocation of ClassVisitor.visitMethod(int, String, String, String, String[]).
      Overrides:
      onVisitMethod in class MetadataAwareClassVisitor
      Parameters:
      modifiers - The method's modifiers.
      internalName - The method's internal name.
      descriptor - The field type's descriptor.
      signature - The method's generic signature or null if the method is not generic.
      exception - The method's declared exceptions or null if no exceptions are declared.
      Returns:
      A method visitor to visit the method or null to ignore it.
    • onVisitEnd

      protected void onVisitEnd()
      Description copied from class: MetadataAwareClassVisitor
      An order-sensitive invocation of ClassVisitor.visitEnd().
      Overrides:
      onVisitEnd in class MetadataAwareClassVisitor