Class AttributeMessageParser
- java.lang.Object
-
- com.google.gwt.uibinder.elementparsers.AttributeMessageParser
-
- All Implemented Interfaces:
ElementParser
public class AttributeMessageParser extends java.lang.Object implements ElementParser
This parser is not tied to a particular class of element, but rather is run as the first parser in any parser stack. It looks for attribute values that are set as calls to the template's generated Messages interface, by callingMessagesWriter.consumeAndStoreMessageAttributesFor
-
-
Constructor Summary
Constructors Constructor Description AttributeMessageParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
parse(com.google.gwt.uibinder.rebind.XMLElement elem, java.lang.String fieldName, JClassType type, com.google.gwt.uibinder.rebind.UiBinderWriter writer)
Parse the given element, generating the code to initialize it from the element's attributes and children.
-
-
-
Method Detail
-
parse
public void parse(com.google.gwt.uibinder.rebind.XMLElement elem, java.lang.String fieldName, JClassType type, com.google.gwt.uibinder.rebind.UiBinderWriter writer) throws UnableToCompleteException
Description copied from interface:ElementParser
Parse the given element, generating the code to initialize it from the element's attributes and children.- Specified by:
parse
in interfaceElementParser
- Parameters:
elem
- the element to be parsedfieldName
- the name of the widget field to be initializedtype
- TODOwriter
- the writer- Throws:
UnableToCompleteException
- on error
-
-