Package com.vaadin.hilla.engine
Class TypeScriptProcessor
java.lang.Object
com.vaadin.hilla.engine.TypeScriptProcessor
Writes the TypeScript of the endpoints, which is what the browser calls the
server through, into the folder the application reads it from.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic GenerationFinds the browser callable classes the configuration says how to find, walks them and writes their TypeScript, which is what a build does.static Generationgenerate(EngineAutoConfiguration conf, List<Class<?>> browserCallables) Walks the given browser callable classes and writes their TypeScript.voidprocess(Generation generation) Writes the files of one generation, and removes what the run before it left behind.
-
Constructor Details
-
TypeScriptProcessor
-
TypeScriptProcessor
- Parameters:
baseDir- the folder of the application, which a relative output folder is resolved againstoutputDirectory- the folder the generated files go into
-
-
Method Details
-
generate
public static Generation generate(EngineAutoConfiguration conf) throws BrowserCallableFinderException Finds the browser callable classes the configuration says how to find, walks them and writes their TypeScript, which is what a build does.- Returns:
- what the walk found
- Throws:
BrowserCallableFinderException
-
generate
Walks the given browser callable classes and writes their TypeScript.- Returns:
- what the walk found, which tells what the TypeScript is written from
-
process
Writes the files of one generation, and removes what the run before it left behind.- Parameters:
generation- everything the parser found, as the writers need it- Throws:
GeneratorException
-