public class SourceFileComposerFactory extends Object
SourceFileComposer instances.| Modifier and Type | Class and Description |
|---|---|
static class |
SourceFileComposerFactory.JavaSourceCategory
Represents a java source file category.
|
| Constructor and Description |
|---|
SourceFileComposerFactory(String packageName,
String className) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAnnotationDeclaration(String declaration) |
void |
addImplementedInterface(String intfName) |
void |
addImport(String typeName) |
com.google.gwt.user.rebind.SourceWriter |
createSourceWriter(com.google.gwt.core.ext.GeneratorContext ctx,
PrintWriter printWriter)
Creates an implementation of
SourceWriter that can be used to write
the innards of a class. |
com.google.gwt.user.rebind.SourceWriter |
createSourceWriter(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 |
getPrivacy() |
String |
getSuperclassName() |
void |
makeInterface()
This class is an interface.
|
void |
setJavaDocCommentForClass(String comment)
Sets the java doc comment for
this. |
void |
setPrivacy(String privacy) |
void |
setSuperclass(String superclassName) |
public void addAnnotationDeclaration(String declaration)
public void addImplementedInterface(String intfName)
public void addImport(String typeName)
public com.google.gwt.user.rebind.SourceWriter createSourceWriter(com.google.gwt.core.ext.GeneratorContext ctx,
PrintWriter printWriter)
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.RuntimeException - If the settings on this factory are inconsistent
or invalidpublic com.google.gwt.user.rebind.SourceWriter createSourceWriter(PrintWriter printWriter)
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.printWriter - underlying writerRuntimeException - If the settings on this factory are inconsistent
or invalidpublic String[] getAnnotationDeclarations()
public String getCreatedClassName()
public String getCreatedClassShortName()
public String getCreatedPackage()
public String[] getInterfaceNames()
public String getSuperclassName()
public String getPrivacy()
public void makeInterface()
public void setJavaDocCommentForClass(String comment)
this.comment - java doc comment.public void setSuperclass(String superclassName)
public void setPrivacy(String privacy)
Copyright © December 07, 2012-2014 The Internet Party. All Rights Reserved.