Class ClassVisitor

java.lang.Object
dxt.scanpath.v2.mstore.ClassVisitor
Direct Known Subclasses:
ClassAnnotationVisitor, FieldAnnotationVisitor, HierarchyVisitor, MethodAnnotationVisitor

public abstract class ClassVisitor extends Object
Base class for visitors that inspect class metadata and populate a MetaStore.
Author:
indroneel
  • Field Details

    • metaStore

      protected final MetaStore metaStore
      The metadata store populated by this visitor.
    • clsCtxt

      protected final ZClassContext clsCtxt
      The context used to obtain class metadata by fully qualified name.
  • Constructor Details

    • ClassVisitor

      protected ClassVisitor(MetaStore store, ZClassContext ctxt)
      Creates a visitor with a shared metadata store and class context.
      Parameters:
      store - the store populated by this visitor
      ctxt - the context used to obtain class metadata by fully qualified name
  • Method Details

    • visit

      public abstract void visit(String fqcn)
      Visits a class identified by its fully qualified name.

      Subclasses define the metadata associations recorded during the visit.

      Parameters:
      fqcn - the fully qualified name of the class to visit