protected static class

AbstractClientBundleGenerator.FieldsImpl

extends Object
implements ClientBundleFields
java.lang.Object
   ↳ com.google.gwt.resources.rebind.context.AbstractClientBundleGenerator.FieldsImpl

Class Overview

An implementation of ClientBundleFields.

Summary

Protected Constructors
AbstractClientBundleGenerator.FieldsImpl()
Public Methods
String define(JType type, String name, String initializer, boolean isStatic, boolean isFinal)
Adds a field to the bundle.
String define(JType type, String name)
Adds a field to the bundle.
void setInitializer(String ident, String initializer)
This can be called to reset the initializer expression on an already-defined field.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.google.gwt.resources.ext.ClientBundleFields

Protected Constructors

protected AbstractClientBundleGenerator.FieldsImpl ()

Public Methods

public String define (JType type, String name, String initializer, boolean isStatic, boolean isFinal)

Adds a field to the bundle.

Parameters
type the declared type of the field
name a Java identifier to be used as the basis for the name of the field
initializer a Java expression that will be used as the field's initializer, or null if no initialization expression is desired
isStatic if true the field will be declared to be static
isFinal if true the fields will be declared as final
Returns
  • the identifier that must be used to access the field

public String define (JType type, String name)

Adds a field to the bundle. Equivalent to defineField(type, name, null, true, false).

Parameters
type the declared type of the field
name a Java identifier to be used as the basis for the name of the field
Returns
  • the identifier that must be used to access the field

public void setInitializer (String ident, String initializer)

This can be called to reset the initializer expression on an already-defined field.

Parameters
ident an identifier previously returned by define(JType, String)
initializer a Java expression that will be used to initialize the field