com.google.gwt.user.rebind
Class ClassSourceFileComposerFactory
java.lang.Object
com.google.gwt.user.rebind.ClassSourceFileComposerFactory
- public class ClassSourceFileComposerFactory
- extends Object
ClassSourceFileComposerFactory
public ClassSourceFileComposerFactory(String createdPackage,
String createdClassShortName)
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.