public class

ClassSourceFileComposerFactory

extends Object
java.lang.Object
   ↳ com.google.gwt.user.rebind.ClassSourceFileComposerFactory

Class Overview

Factory clas to create ClassSourceFileComposer instances.

Summary

Nested Classes
class ClassSourceFileComposerFactory.JavaSourceCategory Represents a java source file category. 
Public Constructors
ClassSourceFileComposerFactory(String packageName, String className)
Public Methods
void addAnnotationDeclaration(String declaration)
void addImplementedInterface(String intfName)
void addImport(String typeName)
SourceWriter createSourceWriter(PrintWriter printWriter)
Creates an implementation of SourceWriter that can be used to write the innards of a class.
SourceWriter createSourceWriter(GeneratorContext ctx, PrintWriter printWriter)
Creates an implementation of SourceWriter that can be used to write the innards of a class.
String[] getAnnotationDeclarations()
String getCreatedClassName()
String getCreatedClassShortName()
String getCreatedPackage()
String[] getInterfaceNames()
String getSuperclassName()
void makeInterface()
This class is an interface.
void setJavaDocCommentForClass(String comment)
Sets the java doc comment for this.
void setSuperclass(String superclassName)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public ClassSourceFileComposerFactory (String packageName, String className)

Public Methods

public void addAnnotationDeclaration (String declaration)

public void addImplementedInterface (String intfName)

public void addImport (String typeName)

public SourceWriter createSourceWriter (PrintWriter printWriter)

Creates an implementation of SourceWriter that can be used to write the innards of a class. Note that the subsequent changes to this factory do not affect the returned instance.

Parameters
printWriter underlying writer
Returns
  • the source writer
Throws
RuntimeException If the settings on this factory are inconsistent or invalid

public SourceWriter createSourceWriter (GeneratorContext ctx, PrintWriter printWriter)

Creates an implementation of SourceWriter that can be used to write the innards of a class. Note that the subsequent changes to this factory do not affect the returned instance.

Throws
RuntimeException If the settings on this factory are inconsistent or invalid

public String[] getAnnotationDeclarations ()

public String getCreatedClassName ()

public String getCreatedClassShortName ()

public String getCreatedPackage ()

public String[] getInterfaceNames ()

public String getSuperclassName ()

public void makeInterface ()

This class is an interface.

public void setJavaDocCommentForClass (String comment)

Sets the java doc comment for this.

Parameters
comment java doc comment.

public void setSuperclass (String superclassName)