public class ClassSourceFileComposerFactory extends Object
ClassSourceFileComposer
instances.Constructor and Description |
---|
ClassSourceFileComposerFactory(String packageName,
String className) |
Modifier and Type | Method and Description |
---|---|
void |
addAnnotationDeclaration(String declaration) |
void |
addImplementedInterface(String intfName) |
void |
addImport(String typeName) |
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. |
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 |
getSuperclassName() |
void |
makeInterface()
This class is an interface.
|
void |
setJavaDocCommentForClass(String comment)
Sets the java doc comment for
this . |
void |
setSuperclass(String superclassName) |
public void addAnnotationDeclaration(String declaration)
public void addImplementedInterface(String intfName)
public void addImport(String typeName)
public 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 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 void makeInterface()
public void setJavaDocCommentForClass(String comment)
this
.comment
- java doc comment.public void setSuperclass(String superclassName)
Copyright © 2016. All rights reserved.