Class Plugin.Engine.Source.Filtering

    • Constructor Detail

      • Filtering

        public Filtering​(Plugin.Engine.Source delegate,
                         ElementMatcher<Plugin.Engine.Source.Element> matcher)
        Creates a new filtering source that retains the manifest of the delegated source.
        Parameters:
        delegate - The source to which invocations are delegated.
        matcher - The element matcher being used to filter elements.
      • Filtering

        public Filtering​(Plugin.Engine.Source delegate,
                         ElementMatcher<Plugin.Engine.Source.Element> matcher,
                         boolean manifest)
        Creates a new filtering source.
        Parameters:
        delegate - The source to which invocations are delegated.
        matcher - The element matcher being used to filter elements.
        manifest - true if the manifest should be retained.
    • Method Detail

      • dropMultiReleaseClassFilesAbove

        public static Plugin.Engine.Source dropMultiReleaseClassFilesAbove​(Plugin.Engine.Source delegate,
                                                                           ClassFileVersion classFileVersion)
        Wraps a source to exclude elements that are above the specified Java version.
        Parameters:
        delegate - The delegate source.
        classFileVersion - The latest multi-release Java version to retain from the source.
        Returns:
        A source that applies an appropriate filter.