Interface ClasspathElement
- All Superinterfaces:
CodeContribution, Resource
Marker interface for code contributions that are not Java modules and
must be placed on the classpath (-cp) during compilation or run-time.
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleanChecks whether this code contribution is modular.Methods inherited from interface CodeContribution
moduleName, toPathMethods inherited from interface Resource
asOf, asOfLocalized, cleanup, isNewerThan, name, type
-
Method Details
-
isModular
Description copied from interface:CodeContributionChecks whether this code contribution is modular. This works for both JAR files and directories. Both are considered as modular if they contain amodule-info.class. JARs are also considered as modular if they have anAutomatic-Module-Nameset in theirMANIFEST.MF.- Specified by:
isModularin interfaceCodeContribution- Returns:
- true, if the contribution is modular
-