Package com.vaadin.flow.polymer2lit
Class ServerConverter
java.lang.Object
com.vaadin.flow.polymer2lit.ServerConverter
A server converter that converts Polymer-based *.java source files to Lit.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanconvertFile(Path filePath) Converts a singlePolymerTemplatebased Java file toLitTemplatein place.
-
Constructor Details
-
ServerConverter
public ServerConverter()Creates a server converter.
-
-
Method Details
-
convertFile
Converts a singlePolymerTemplatebased Java file toLitTemplatein place.Files that do not extend
PolymerTemplate, and files the conversion leaves unchanged, are left untouched.- Parameters:
filePath- the file to convert- Returns:
trueif the file was rewritten,falseotherwise- Throws:
IOException- if the file cannot be read or written
-