Class Renderers


  • public class Renderers
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      Renderers()  
    • Method Summary

      Modifier and Type Method Description
      void add​(FileContentRenderer renderer)  
      FileContentRenderer forTargetPath​(java.nio.file.Path path)
      Return the first renderer which matches the target extension and which also has a readable source file under the source extension, or null if none is available.
      java.util.List<FileContentRenderer> getRendererTypes()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Renderers

        public Renderers()
    • Method Detail

      • forTargetPath

        public FileContentRenderer forTargetPath​(java.nio.file.Path path)
        Return the first renderer which matches the target extension and which also has a readable source file under the source extension, or null if none is available.
        Parameters:
        path - The target path which is meant to be rendered
        Returns:
        A renderer or null, if none are available
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object