public class LitTemplateParserImpl extends Object implements LitTemplateParser
The implementation scans all JsModule annotations for the given template class and tries to find the one that contains template definition using the tag name.
The class is Singleton. Use getInstance()
to
get its instance.
For internal use only. May be renamed or removed in a future release.
BundleLitParser
LitTemplateParser.LitTemplateParserFactory, LitTemplateParser.TemplateData
Modifier | Constructor and Description |
---|---|
protected |
LitTemplateParserImpl()
The default constructor.
|
Modifier and Type | Method and Description |
---|---|
static LitTemplateParser |
getInstance() |
protected String |
getSourcesFromTemplate(String tag,
String url)
Finds the JavaScript sources for given tag.
|
LitTemplateParser.TemplateData |
getTemplateContent(Class<? extends LitTemplate> clazz,
String tag,
VaadinService service)
Gets the template data which contains a JSOUP
Element
representing the template content and the template uri. |
protected LitTemplateParserImpl()
public static LitTemplateParser getInstance()
public LitTemplateParser.TemplateData getTemplateContent(Class<? extends LitTemplate> clazz, String tag, VaadinService service)
LitTemplateParser
Element
representing the template content and the template uri.getTemplateContent
in interface LitTemplateParser
clazz
- the template classtag
- the template tag nameservice
- the related Vaadin servicenull
Copyright © 2021. All rights reserved.