com.vaadin.flow.component.polymertemplate.
Class TemplateDataAnalyzer.ParserData
- java.lang.Object
-
- com.vaadin.flow.component.polymertemplate.TemplateDataAnalyzer.ParserData
-
Enclosing class:
public static class TemplateDataAnalyzer.ParserData extends Object
Immutable parser data which may be stored in cache.
-
-
Constructor Summary
Constructors Constructor and Description ParserData(Map<Field,String> fields, Map<String,String> tags, Map<String,Map<String,String>> attributes, Set<String> twoWayBindings, Collection<com.vaadin.flow.component.polymertemplate.TemplateDataAnalyzer.SubTemplateData> subTemplates)
Constructs an immutable data object with the given information.
-
Method Summary
All Methods Modifier and Type Method and Description void
forEachInjectedField(TemplateDataAnalyzer.InjectableFieldCunsumer consumer)
Applies the given consumer to each mapped field.
Map<String,String>
getAttributes(String id)
Gets template element data (attribute values).
-
-
-
Constructor Detail
-
ParserData
public ParserData(Map<Field,String> fields, Map<String,String> tags, Map<String,Map<String,String>> attributes, Set<String> twoWayBindings, Collection<com.vaadin.flow.component.polymertemplate.TemplateDataAnalyzer.SubTemplateData> subTemplates)
Constructs an immutable data object with the given information.
Parameters:
fields
- a map of fields to their idstags
- a map of ids to their tagsattributes
- a map of attributes values to the element idtwoWayBindings
- the properties which support two way bindingsubTemplates
- data for sub templates
-
-
Method Detail
-
forEachInjectedField
public void forEachInjectedField(TemplateDataAnalyzer.InjectableFieldCunsumer consumer)
Applies the given consumer to each mapped field.
Parameters:
consumer
- the consumer to call for each mapped field
-
-