Interface ClasspathElement

All Superinterfaces:
CodeContribution, Resource

public interface ClasspathElement extends CodeContribution
Marker interface for code contributions that are not Java modules and must be placed on the classpath (-cp) during compilation or run-time.
  • Method Details

    • isModular

      default 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