class StrictAttributeParser extends java.lang.Object implements AttributeParser
Modifier and Type | Class and Description |
---|---|
(package private) static class |
StrictAttributeParser.FieldReferenceDelegate
Package protected for testing.
|
Modifier and Type | Field and Description |
---|---|
protected com.google.gwt.uibinder.rebind.MortalLogger |
logger |
Constructor and Description |
---|
StrictAttributeParser(FieldReferenceConverter converter,
com.google.gwt.uibinder.rebind.MortalLogger logger,
JType... types) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
parse(com.google.gwt.uibinder.rebind.XMLElement source,
java.lang.String value)
If the value holds a single field reference "{like.this}", converts it to a
Java Expression.
|
StrictAttributeParser(FieldReferenceConverter converter, com.google.gwt.uibinder.rebind.MortalLogger logger, JType... types)
public java.lang.String parse(com.google.gwt.uibinder.rebind.XMLElement source, java.lang.String value) throws UnableToCompleteException
In any other case (e.g. more than one field reference), an UnableToCompleteException is thrown.
parse
in interface AttributeParser
source
- the source code the value came from, for error reporting purposesvalue
- the attribute value to be parsedUnableToCompleteException
- on parse error