Interface FilePlugin<T,​R>

    • Method Detail

      • accepts

        boolean accepts​(FileContext file,
                        T context)
        Checks if the plugin can be applied to the given file.
        Parameters:
        file - Context file
        context - Context objects
        Returns:
        true when the plugin can be applied to the given file.
      • implicitApply

        ImplicitApplyOptions implicitApply​(FileContext file,
                                           T context)
        Whether to apply this plugin implicitly.
        Parameters:
        file - Context file
        context - Context objects
        Returns:
        Implicit apply option
      • apply

        R apply​(FileContext file,
                T context)
        Applies the plugin operation.
        Parameters:
        file - Context file
        context - Context objects
        Returns:
        Return value or Void.