Class StringAttributeParser.FieldReferenceDelegate
java.lang.Object
com.google.gwt.uibinder.attributeparsers.StringAttributeParser.FieldReferenceDelegate
- All Implemented Interfaces:
FieldReferenceConverter.Delegate
- Enclosing class:
- StringAttributeParser
static class StringAttributeParser.FieldReferenceDelegate
extends Object
implements FieldReferenceConverter.Delegate
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionJType[]getTypes()Returns the types any parsed field references are expected to return.handleFragment(String literal) Called for fragment around and between field references.handleReference(String reference) Called for each expanded field reference, to allow it to be stitched together with surrounding fragments.
-
Constructor Details
-
FieldReferenceDelegate
FieldReferenceDelegate(JType type)
-
-
Method Details
-
getTypes
Description copied from interface:FieldReferenceConverter.DelegateReturns the types any parsed field references are expected to return. Multiple values indicates an overload. E.g., in either a String or a SafeUri is allowed.- Specified by:
getTypesin interfaceFieldReferenceConverter.Delegate
-
handleFragment
Description copied from interface:FieldReferenceConverter.DelegateCalled for fragment around and between field references.Note that it will be called with empty strings if these surrounding bits are empty. E.g., "{style.enabled} fancy {style.impressive}" would call this method three times, with "", " fancy ", and "".
A string with no field references is treated as a single fragment, and causes a single call to this method.
- Specified by:
handleFragmentin interfaceFieldReferenceConverter.Delegate
-
handleReference
Description copied from interface:FieldReferenceConverter.DelegateCalled for each expanded field reference, to allow it to be stitched together with surrounding fragments.- Specified by:
handleReferencein interfaceFieldReferenceConverter.Delegate
-