Class DefaultClassTree

All Implemented Interfaces:
FileTree<ClassFile>, InputTree<ClassFile>, Proxyable, Resource, Resources<ClassFile>, ClassTree, CodeContribution

public class DefaultClassTree extends DefaultFileTree<ClassFile> implements ClassTree
A default implementation of ClassTree.
  • Constructor Details

  • Method Details

    • toPath

      public Path toPath()
      Description copied from interface: CodeContribution
      Return the representation of the element as it must appear on a classpath or module-path.
      Specified by:
      toPath in interface CodeContribution
      Returns:
      the path
    • isModular

      public boolean isModular()
      Description copied from interface: CodeContribution
      Checks whether this code contribution is modular. This works for both JAR files and directories. Both are considered as modular if they contain a module-info.class. JARs are also considered as modular if they have an Automatic-Module-Name set in their MANIFEST.MF.
      Specified by:
      isModular in interface CodeContribution
      Returns:
      true, if the contribution is modular