public class GeneratedPackage extends GeneratedAnnotationTarget implements MetaPackage, GeneratedContext
Constructor and Description |
---|
GeneratedPackage() |
GeneratedPackage(String name) |
Modifier and Type | Method and Description |
---|---|
GeneratedBinaryFile |
addAuxiliaryFile(String name) |
GeneratedClass |
addClass(int modifiers,
String name) |
GeneratedClass |
addClass(int modifiers,
String name,
Class superClass) |
GeneratedClass |
addClass(int modifiers,
String name,
MetaType superClass) |
GeneratedEnum |
addEnum(int modifiers,
String name) |
GeneratedClass |
addInterface(int modifiers,
String name,
MetaType... superIfaces) |
Collection<GeneratedBinaryFile> |
getAuxiliaryFiles() |
GeneratedClass |
getClass(String name) |
Collection<GeneratedClass> |
getClasses() |
String |
getImportPattern() |
GeneratedSourceFile |
getInfoFile() |
String |
getName() |
GeneratedContext |
getParentContext() |
SortedMap<String,GeneratedSourceFile> |
getSourceFiles() |
protected void |
makeInfoFile() |
void |
removeClass(String name) |
addAnnotation, addAnnotation, addAnnotation, addComment, getAnnotations, getComments, getRawComments, hasMetadata
public GeneratedPackage()
public GeneratedPackage(String name)
public final GeneratedContext getParentContext()
getParentContext
in interface GeneratedContext
public String getImportPattern()
getImportPattern
in interface MetaImportable
public final String getName()
getName
in interface MetaPackage
public Collection<GeneratedClass> getClasses()
getClasses
in interface GeneratedContext
public GeneratedClass addClass(int modifiers, String name)
public GeneratedClass addClass(int modifiers, String name, Class superClass)
public GeneratedClass addClass(int modifiers, String name, MetaType superClass)
addClass
in interface GeneratedContext
public GeneratedClass addInterface(int modifiers, String name, MetaType... superIfaces)
public GeneratedEnum addEnum(int modifiers, String name)
addEnum
in interface GeneratedContext
public void removeClass(String name)
public GeneratedBinaryFile addAuxiliaryFile(String name)
public Collection<GeneratedBinaryFile> getAuxiliaryFiles()
public GeneratedClass getClass(String name)
getClass
in interface MetaPackage
public GeneratedSourceFile getInfoFile()
protected void makeInfoFile()
public SortedMap<String,GeneratedSourceFile> getSourceFiles()
see also the complete user documentation .