Class ContextClassVisitor

java.lang.Object
org.objectweb.asm.ClassVisitor
net.bytebuddy.utility.visitor.ContextClassVisitor
Direct Known Subclasses:
TypeWriter.Default.ForCreation.ImplementationContextClassVisitor, TypeWriter.Default.ForInlining.RegistryContextClassVisitor

public abstract class ContextClassVisitor extends org.objectweb.asm.ClassVisitor
A ClassVisitor that supplies contextual information, similar to a DynamicType. Reading auxiliary types or the loaded type initializer of this type
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private boolean
    If true, this class visitor permits auxiliary types or an active type initializer.

    Fields inherited from class org.objectweb.asm.ClassVisitor

    api, cv
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    ContextClassVisitor(org.objectweb.asm.ClassVisitor classVisitor)
    Creates a new context class visitor.
  • Method Summary

    Modifier and Type
    Method
    Description
    Allows this class visitor to result in auxiliary types or an active type initializer.
    abstract List<DynamicType>
    Returns the auxiliary types that this class visitor currently supplies.
    Returns the loaded type initializer that this class visitor currently implies.
    void
     

    Methods inherited from class org.objectweb.asm.ClassVisitor

    getDelegate, visit, visitAnnotation, visitAttribute, visitField, visitInnerClass, visitMethod, visitModule, visitNestHost, visitNestMember, visitOuterClass, visitPermittedSubclass, visitRecordComponent, visitSource, visitTypeAnnotation

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • active

      private boolean active
      If true, this class visitor permits auxiliary types or an active type initializer.
  • Constructor Details

    • ContextClassVisitor

      protected ContextClassVisitor(org.objectweb.asm.ClassVisitor classVisitor)
      Creates a new context class visitor.
      Parameters:
      classVisitor - The class visitor to delegate to.
  • Method Details

    • active

      public ContextClassVisitor active()
      Allows this class visitor to result in auxiliary types or an active type initializer.
      Returns:
      This instance marked as active.
    • getAuxiliaryTypes

      public abstract List<DynamicType> getAuxiliaryTypes()
      Returns the auxiliary types that this class visitor currently supplies.
      Returns:
      The auxiliary types that this class visitor currently supplies.
    • getLoadedTypeInitializer

      public abstract LoadedTypeInitializer getLoadedTypeInitializer()
      Returns the loaded type initializer that this class visitor currently implies.
      Returns:
      The loaded type initializer that this class visitor currently implies.
    • visitEnd

      public void visitEnd()
      Overrides:
      visitEnd in class org.objectweb.asm.ClassVisitor