Class DependencyClassFileVisitor

java.lang.Object
org.apache.maven.shared.dependency.analyzer.asm.DependencyClassFileVisitor
All Implemented Interfaces:
ClassFileVisitor

public class DependencyClassFileVisitor extends Object implements ClassFileVisitor
Computes the set of classes referenced by visited class files, using DependencyVisitor.
Author:
Mark Hobson
See Also:
  • Constructor Details

    • DependencyClassFileVisitor

      public DependencyClassFileVisitor(ClassesPatterns excludedClasses)

      Constructor for DependencyClassFileVisitor.

    • DependencyClassFileVisitor

      public DependencyClassFileVisitor()

      Constructor for DependencyClassFileVisitor.

  • Method Details

    • visitClass

      public void visitClass(String className, InputStream in)

      visitClass.

      Specified by:
      visitClass in interface ClassFileVisitor
      Parameters:
      className - a String object.
      in - a InputStream object.
    • getDependencies

      public Set<String> getDependencies()

      getDependencies.

      Returns:
      the set of classes referenced by visited class files
    • getDependencyUsages

      public Set<DependencyUsage> getDependencyUsages()

      getDependencyUsages.

      Returns:
      the set of classes referenced by visited class files, paired with classes declaring the references.