Class DependenciesElementScanner

All Implemented Interfaces:
ElementVisitor<Set<PackageDependency>,String>

public class DependenciesElementScanner extends ElementScanner9<Set<PackageDependency>,String>
JavaDoc ElementScanner to detect dependencies.

The packages of the dependencies are remembered and the result of the scan is a set of PackageDependency objects. Duplicate dependencies will be automatically removed because the result is a set.

Author:
Sjoerd Talsma
  • Constructor Details

    • DependenciesElementScanner

      public DependenciesElementScanner(DocletEnvironment docEnv, Configuration config)
      Constructor to create a new package dependencies scanner.

      The scanner is stateful, the set of package dependencies is collected in the (mutable) ElementScanner6.DEFAULT_VALUE set.

      Parameters:
      docEnv - The doclet environment (required, non-null). This is needed to evalutate whether visited elements are included in the documentation.
      config - The doclet configuration (required, non-null).
  • Method Details