Interface JavaResourceTree

All Superinterfaces:
CodeContribution, FileTree<ResourceFile>, InputTree<ResourceFile>, Resource, Resources<ResourceFile>
All Known Implementing Classes:
DefaultJavaResourceTree

A FileTree that consists of ResourceFiles and can be used in a Java classpath.
  • 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
    • of

      static JavaResourceTree of(Project project, Path directory, String pattern)
      Creates a new Java resource tree from the given values.
      Parameters:
      project - the project
      directory - the directory
      pattern - the pattern
      Returns:
      the java resource tree