|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.gwt.user.rebind.ClassSourceFileComposerFactory
public class ClassSourceFileComposerFactory
Factory clas to create ClassSourceFileComposer instances.
| Nested Class Summary | |
|---|---|
static class |
ClassSourceFileComposerFactory.JavaSourceCategory
Represents a java source file category. |
| Constructor Summary | |
|---|---|
ClassSourceFileComposerFactory(java.lang.String packageName,
java.lang.String className)
|
|
| Method Summary | |
|---|---|
void |
addAnnotationDeclaration(java.lang.String declaration)
|
void |
addImplementedInterface(java.lang.String intfName)
|
void |
addImport(java.lang.String typeName)
|
SourceWriter |
createSourceWriter(GeneratorContext ctx,
java.io.PrintWriter printWriter)
Creates an implementation of SourceWriter that can be used to write
the innards of a class. |
SourceWriter |
createSourceWriter(java.io.PrintWriter printWriter)
Creates an implementation of SourceWriter that can be used to write
the innards of a class. |
java.lang.String[] |
getAnnotationDeclarations()
|
java.lang.String |
getCreatedClassName()
|
java.lang.String |
getCreatedClassShortName()
|
java.lang.String |
getCreatedPackage()
|
java.lang.String[] |
getInterfaceNames()
|
java.lang.String |
getSuperclassName()
|
void |
makeInterface()
This class is an interface. |
void |
setJavaDocCommentForClass(java.lang.String comment)
Sets the java doc comment for this. |
void |
setSuperclass(java.lang.String superclassName)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ClassSourceFileComposerFactory(java.lang.String packageName,
java.lang.String className)
| Method Detail |
|---|
public void addAnnotationDeclaration(java.lang.String declaration)
public void addImplementedInterface(java.lang.String intfName)
public void addImport(java.lang.String typeName)
public SourceWriter createSourceWriter(GeneratorContext ctx,
java.io.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.
java.lang.RuntimeException - If the settings on this factory are inconsistent
or invalidpublic SourceWriter createSourceWriter(java.io.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 writer
java.lang.RuntimeException - If the settings on this factory are inconsistent
or invalidpublic java.lang.String[] getAnnotationDeclarations()
public java.lang.String getCreatedClassName()
public java.lang.String getCreatedClassShortName()
public java.lang.String getCreatedPackage()
public java.lang.String[] getInterfaceNames()
public java.lang.String getSuperclassName()
public void makeInterface()
public void setJavaDocCommentForClass(java.lang.String comment)
this.
comment - java doc comment.public void setSuperclass(java.lang.String superclassName)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||