public class GeneratedSourceFile extends Object implements GeneratedSourceContext
Modifier and Type | Method and Description |
---|---|
GeneratedClass |
addClass(int modifier,
String name,
MetaType baseClass) |
GeneratedEnum |
addEnum(int modifier,
String name) |
void |
addImport(Class metaClass) |
void |
addImport(ClassLoader loader,
String packageName) |
void |
addImport(MetaImportable importable) |
GeneratedClass |
getClass(String name) |
Collection<GeneratedClass> |
getClasses() |
Set<MetaImportable> |
getImports() |
GeneratedPackage |
getPackage() |
GeneratedSourceContext |
getParentSourceContext() |
String |
getQualifiedName() |
String |
getSimpleName() |
GeneratedSourceFile |
getSourceFile() |
public final GeneratedSourceContext getParentSourceContext()
getParentSourceContext
in interface GeneratedSourceContext
public final GeneratedSourceFile getSourceFile()
getSourceFile
in interface GeneratedSourceContext
public final GeneratedPackage getPackage()
getPackage
in interface GeneratedSourceContext
public final String getSimpleName()
getSimpleName
in interface GeneratedSourceContext
public final String getQualifiedName()
getQualifiedName
in interface GeneratedSourceContext
public void addImport(MetaImportable importable)
public void addImport(Class metaClass)
public void addImport(ClassLoader loader, String packageName)
public Set<MetaImportable> getImports()
getImports
in interface GeneratedSourceContext
public GeneratedClass addClass(int modifier, String name, MetaType baseClass)
public GeneratedEnum addEnum(int modifier, String name)
public GeneratedClass getClass(String name)
public Collection<GeneratedClass> getClasses()
see also the complete user documentation .