Class EnumAttributeParser
java.lang.Object
com.google.gwt.uibinder.attributeparsers.StrictAttributeParser
com.google.gwt.uibinder.attributeparsers.EnumAttributeParser
- All Implemented Interfaces:
AttributeParser
Parses an enum attribute.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.gwt.uibinder.attributeparsers.StrictAttributeParser
StrictAttributeParser.FieldReferenceDelegate -
Field Summary
Fields inherited from class com.google.gwt.uibinder.attributeparsers.StrictAttributeParser
logger -
Constructor Summary
ConstructorsConstructorDescriptionEnumAttributeParser(FieldReferenceConverter converter, JEnumType enumType, com.google.gwt.uibinder.rebind.MortalLogger logger) -
Method Summary
-
Constructor Details
-
EnumAttributeParser
EnumAttributeParser(FieldReferenceConverter converter, JEnumType enumType, com.google.gwt.uibinder.rebind.MortalLogger logger)
-
-
Method Details
-
parse
public String parse(com.google.gwt.uibinder.rebind.XMLElement source, String value) throws UnableToCompleteException Description copied from class:StrictAttributeParserIf the value holds a single field reference "{like.this}", converts it to a Java Expression.In any other case (e.g. more than one field reference), an UnableToCompleteException is thrown.
- Specified by:
parsein interfaceAttributeParser- Overrides:
parsein classStrictAttributeParser- Parameters:
source- the source code the value came from, for error reporting purposesvalue- the attribute value to be parsed- Returns:
- a valid Java expression
- Throws:
UnableToCompleteException- on parse error
-