com.google.gwt.user.rebind
Class ClassSourceFileComposerFactory

java.lang.Object
  extended bycom.google.gwt.user.rebind.ClassSourceFileComposerFactory

public class ClassSourceFileComposerFactory
extends Object


Field Summary
 
Fields inherited from class java.lang.Object
typeId, typeName
 
Constructor Summary
ClassSourceFileComposerFactory(String createdPackage, String createdClassShortName)
           
 
Method Summary
 void addImplementedInterface(Class intf)
           
 void addImplementedInterface(String intfName)
           
 void addImport(Class type)
           
 void addImport(String typeName)
           
 SourceWriter createSourceWriter(GeneratorContext ctx, PrintWriter printWriter)
          Creates an implementation of SourceWriter that can be used to write the innards of a class.
 String getCreatedClassName()
           
 String getCreatedClassShortName()
           
 String getCreatedPackage()
           
 String[] getInterfaceNames()
           
 String getSuperclassName()
           
 void setSuperclass(Class superclass)
           
 void setSuperclass(String superclassName)
           
 
Methods inherited from class java.lang.Object
equals, finalize, hashCode, toString
 

Constructor Detail

ClassSourceFileComposerFactory

public ClassSourceFileComposerFactory(String createdPackage,
                                      String createdClassShortName)
Method Detail

createSourceWriter

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

getInterfaceNames

public String[] getInterfaceNames()

getSuperclassName

public String getSuperclassName()

getCreatedClassShortName

public String getCreatedClassShortName()

getCreatedPackage

public String getCreatedPackage()

getCreatedClassName

public String getCreatedClassName()

addImplementedInterface

public void addImplementedInterface(String intfName)

addImplementedInterface

public void addImplementedInterface(Class intf)

addImport

public void addImport(String typeName)

addImport

public void addImport(Class type)

setSuperclass

public void setSuperclass(Class superclass)

setSuperclass

public void setSuperclass(String superclassName)


This javadoc distribution was not produced by Google. The official documentation is here.