com.vaadin.flow.server.frontend.
Class TaskGenerateIndexTs
- java.lang.Object
 - 
- com.vaadin.flow.server.frontend.AbstractTaskClientGenerator
 - 
- com.vaadin.flow.server.frontend.TaskGenerateIndexTs
 
 
 
- 
All Implemented Interfaces:
public class TaskGenerateIndexTs extends AbstractTaskClientGeneratorGenerate
index.jsif it is missing in frontend folder.Since:
3.0
 
- 
- 
Method Summary
All Methods Modifier and Type Method and Description protected StringgetFileContent()Get file content for writing to the generated file.
protected FilegetGeneratedFile()Get the generated file where content will be written.
protected booleanshouldGenerate()Check if it should generate the file or not.
- 
Methods inherited from class com.vaadin.flow.server.frontend.AbstractTaskClientGenerator
execute 
 - 
 
 - 
 
- 
- 
Method Detail
- 
getGeneratedFile
protected File getGeneratedFile()Description copied from class:
AbstractTaskClientGeneratorGet the generated file where content will be written.
Specified by:
getGeneratedFilein classAbstractTaskClientGeneratorReturns:
the generated file.
 
- 
shouldGenerate
protected boolean shouldGenerate()Description copied from class:
AbstractTaskClientGeneratorCheck if it should generate the file or not.
Specified by:
shouldGeneratein classAbstractTaskClientGeneratorReturns:
true if it should generate, false otherwise.
 
- 
getFileContent
protected String getFileContent() throws IOExceptionDescription copied from class:
AbstractTaskClientGeneratorGet file content for writing to the generated file.
Specified by:
getFileContentin classAbstractTaskClientGeneratorReturns:
content of the file.
Throws:
IOException- if IO error happens while reading file content. 
 - 
 
 -