public class ClassFileDeclarationManager
extends java.lang.Object
ClassFileDeclarationBuilder
 objects to actually create source objects from classes and keeps track of the
 changes.
 
 It allows to retrieve a collection of compilation units in the end.
 
 Only toplevel classes and their embedded classes are created. Anonymous
 classes and classes which are declared within the code are NOT translated.ClassFileDeclarationBuilder| Modifier and Type | Field and Description | 
|---|---|
private java.util.List<ClassFileDeclarationBuilder> | 
builderList  | 
private java.util.Map<java.lang.String,ClassFileDeclarationBuilder> | 
classBuilders  | 
private java.util.List<CompilationUnit> | 
compUnits  | 
private ProgramFactory | 
programFactory  | 
| Constructor and Description | 
|---|
ClassFileDeclarationManager(ProgramFactory programFactory)
create a new ClassFileDeclarationManager 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
addClassFile(ClassFile cf,
            DataLocation dataLocation)
add a class file which is to be transformed into a stub. 
 | 
ClassFileDeclarationBuilder | 
getBuilder(java.lang.String className)
retrieve a specific builder from the database of builders. 
 | 
java.util.Collection<? extends CompilationUnit> | 
getCompilationUnits()
retrieve all stores compilation units. 
 | 
ProgramFactory | 
getProgramFactory()
get the program factory associated with this manager 
 | 
static void | 
main(java.lang.String[] args)
Test the class creation mechanism. 
 | 
private void | 
processBuilders()  | 
private java.util.List<CompilationUnit> compUnits
private java.util.List<ClassFileDeclarationBuilder> builderList
private ProgramFactory programFactory
private java.util.Map<java.lang.String,ClassFileDeclarationBuilder> classBuilders
public ClassFileDeclarationManager(ProgramFactory programFactory)
programFactory - Factory to be used for the creation of the type declarations.public java.util.Collection<? extends CompilationUnit> getCompilationUnits() throws ConvertException
ConvertException - if an inner class cannot be connected to the enclosing
                 class, e.g. if this is not presentprivate void processBuilders()
                      throws ConvertException
ConvertExceptionpublic void addClassFile(ClassFile cf, DataLocation dataLocation)
cf - Classfile to adddataLocation - location to be stored in the created stub.public ProgramFactory getProgramFactory()
public ClassFileDeclarationBuilder getBuilder(java.lang.String className)
className - class to get a builder for.public static void main(java.lang.String[] args)
                 throws java.lang.Exception
java.lang.Exception - all kinds of exceptions