public abstract class

AbstractLocalizableInterfaceCreator

extends Object
java.lang.Object
   ↳ com.google.gwt.i18n.rebind.AbstractLocalizableInterfaceCreator
Known Direct Subclasses

Class Overview

Abstract base functionality for MessagesInterfaceCreator and ConstantsInterfaceCreator.

Summary

Fields
protected SourceWriter composer Composer for the current Constant.
Public Constructors
AbstractLocalizableInterfaceCreator(String className, String packageName, File resourceBundle, File targetLocation, Class<? extends Localizable> interfaceClass)
Creates a new constants creator.
Public Methods
void genSimpleMethodDecl(String key, String defaultValue)
Create a String method declaration from a Dictionary/value pair.
void generate()
Generate class.
Protected Methods
abstract void genMethodArgs(String defaultValue)
Create method args based upon the default value.
abstract void genValueAnnotation(String defaultValue)
Create an annotation to hold the default value.
abstract String javaDocComment(String path)
Returns the javaDocComment for the class.
String makeJavaString(String value)
[Expand]
Inherited Methods
From class java.lang.Object

Fields

protected SourceWriter composer

Composer for the current Constant.

Public Constructors

public AbstractLocalizableInterfaceCreator (String className, String packageName, File resourceBundle, File targetLocation, Class<? extends Localizable> interfaceClass)

Creates a new constants creator.

Parameters
className constant class to create
packageName package to create it in
resourceBundle resource bundle with value
Throws
IOException

Public Methods

public void genSimpleMethodDecl (String key, String defaultValue)

Create a String method declaration from a Dictionary/value pair.

Parameters
key Dictionary
defaultValue default value

public void generate ()

Generate class.

Throws
FileNotFoundException
IOException
FileNotFoundException

Protected Methods

protected abstract void genMethodArgs (String defaultValue)

Create method args based upon the default value.

protected abstract void genValueAnnotation (String defaultValue)

Create an annotation to hold the default value.

protected abstract String javaDocComment (String path)

Returns the javaDocComment for the class.

Parameters
path path of class
Returns
  • java doc comment

protected String makeJavaString (String value)