Class ServerConverter

java.lang.Object
com.vaadin.flow.polymer2lit.ServerConverter

public class ServerConverter extends Object
A server converter that converts Polymer-based *.java source files to Lit.
  • Constructor Details

    • ServerConverter

      public ServerConverter()
      Creates a server converter.
  • Method Details

    • convertFile

      public boolean convertFile(Path filePath) throws IOException
      Converts a single PolymerTemplate based Java file to LitTemplate in place.

      Files that do not extend PolymerTemplate, and files the conversion leaves unchanged, are left untouched.

      Parameters:
      filePath - the file to convert
      Returns:
      true if the file was rewritten, false otherwise
      Throws:
      IOException - if the file cannot be read or written