Class ParserData
- java.lang.Object
-
- com.vaadin.flow.component.template.internal.ParserData
-
- Direct Known Subclasses:
TemplateDataAnalyzer.PolymerParserData
public class ParserData extends Object
Immutable parser data which may be stored in cache.For internal use only. May be renamed or removed in a future release.
- Since:
- Author:
- Vaadin Ltd
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
forEachInjectedField(InjectableFieldConsumer 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)
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 id
-
-
Method Detail
-
forEachInjectedField
public void forEachInjectedField(InjectableFieldConsumer consumer)
Applies the given consumer to each mapped field.- Parameters:
consumer
- the consumer to call for each mapped field
-
-