|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectkoala.dynamicjava.interpreter.ClassInfoCompiler
This class translates a class info into a Class object
Nested Class Summary | |
protected class |
ClassInfoCompiler.ConstructorVisitor
To build the constructors |
protected class |
ClassInfoCompiler.MembersVisitor
To visit the members of a type declaration |
Field Summary | |
protected ClassFactory |
classFactory
The class factory |
protected TreeClassFinder |
classFinder
The class finder |
protected TreeClassInfo |
classInfo
The class info to compile |
protected java.util.List |
classInitializer
The class initializer expressions |
protected boolean |
hasAbstractMethod
Is the underlying class contain an abstract method? |
protected ImportationManager |
importationManager
The importation manager |
protected java.util.List |
instanceInitializer
The instance initializer expressions |
protected TreeInterpreter |
interpreter
The interpreter |
protected boolean |
isInterface
Is the class info represents an interface ? |
protected ClassInfoCompiler.MembersVisitor |
membersVisitor
The members visitor |
protected TypeDeclaration |
typeDeclaration
The tree of the class to compile |
Constructor Summary | |
ClassInfoCompiler(ClassInfo ci)
Creates a new compiler |
Method Summary | |
protected void |
addConstructor(TreeConstructorInfo ci)
Adds a constructor to the current class |
protected void |
addInnerClassesAttribute(ClassInfo ci)
Adds an inner class attribute to the given class |
protected void |
addToClassInitializer(Node n)
Adds a statement to the class initializer |
protected void |
addToInstanceInitializer(Node n)
Adds a statement to the instance initializer |
java.lang.Class |
compile()
Creates a Class object from the classInfo attribute |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected TreeClassInfo classInfo
protected TypeDeclaration typeDeclaration
protected ClassFactory classFactory
protected TreeClassFinder classFinder
protected TreeInterpreter interpreter
protected boolean isInterface
protected boolean hasAbstractMethod
protected java.util.List classInitializer
protected java.util.List instanceInitializer
protected ClassInfoCompiler.MembersVisitor membersVisitor
protected ImportationManager importationManager
Constructor Detail |
public ClassInfoCompiler(ClassInfo ci)
ci
- the class info to compileMethod Detail |
public java.lang.Class compile()
protected void addConstructor(TreeConstructorInfo ci)
ci
- the constructor infoprotected void addInnerClassesAttribute(ClassInfo ci)
protected void addToClassInitializer(Node n)
n
- the statement to addprotected void addToInstanceInitializer(Node n)
n
- the statement to add
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |