com.google.gwt.uibinder.rebind.FieldWriter |
Models a field to be written in the generated binder code. Note that this is not necessarily a field that the user has declared. It's basically any variable the generated UiBinder#createAndBindUi implementation will need.
A field can have a custom initialization statement, set via
setInitializer(String)
. Without one it will be initialized via a
create(Class>)
call. (In the rare case that
you need a field not to be initialized, initialize it to "null".)
Dependencies can be declared between fields via needs(FieldWriter)
, to ensure
that one can be initialized via reference to another. Circular references are
not supported, nor detected.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the type of this field, or for generated types the type it extends.
| |||||||||||
Returns the custom initializer for this field, or null if it is not set.
| |||||||||||
Returns the type of this field, or null if this field is of a type that has
not yet been generated.
| |||||||||||
Returns the qualified source name of this type.
| |||||||||||
Returns the return type found at the end of the given method call
path, which must begin with the receiver's name, or null if the
path is invalid.
| |||||||||||
Declares that the receiver depends upon the given field.
| |||||||||||
Used to provide an initializer string to use instead of a
com.google.gwt.core.client.GWT#create() call.
| |||||||||||
Write the field delcaration.
|
Returns the type of this field, or for generated types the type it extends.
Returns the custom initializer for this field, or null if it is not set.
Returns the type of this field, or null if this field is of a type that has not yet been generated.
Returns the return type found at the end of the given method call path, which must begin with the receiver's name, or null if the path is invalid.
Used to provide an initializer string to use instead of a com.google.gwt.core.client.GWT#create() call. Note that this is an RHS expression. Don't include the leading '=', and don't end it with ';'.
UnableToCompleteException | |
IllegalStateException | on second attempt to set the initializer |
Write the field delcaration.
UnableToCompleteException |
---|