Class StrictAttributeParser
java.lang.Object
com.google.gwt.uibinder.attributeparsers.StrictAttributeParser
- All Implemented Interfaces:
AttributeParser
- Direct Known Subclasses:
BooleanAttributeParser
,DoubleAttributeParser
,EnumAttributeParser
,HorizontalAlignmentConstantParser
,IntAttributeParser
,SafeUriAttributeParser
,TextAlignConstantParser
,VerticalAlignmentConstantParser
Fall through attribute parser. Accepts a field reference or nothing.
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static class
Package protected for testing. -
Field Summary
Modifier and TypeFieldDescriptionprotected final com.google.gwt.uibinder.rebind.MortalLogger
-
Constructor Summary
ConstructorDescriptionStrictAttributeParser
(FieldReferenceConverter converter, com.google.gwt.uibinder.rebind.MortalLogger logger, JType... types) -
Method Summary
-
Field Details
-
logger
protected final com.google.gwt.uibinder.rebind.MortalLogger logger
-
-
Constructor Details
-
StrictAttributeParser
StrictAttributeParser(FieldReferenceConverter converter, com.google.gwt.uibinder.rebind.MortalLogger logger, JType... types)
-
-
Method Details
-
parse
public String parse(com.google.gwt.uibinder.rebind.XMLElement source, String value) throws UnableToCompleteException If 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:
parse
in interfaceAttributeParser
- 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
-