|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--koala.dynamicjava.interpreter.TreeCompiler
This class contains methods to manage the creation of classes.
Inner Class Summary | |
protected class |
TreeCompiler.ClassInfoLoader
To load class infos instead of classes |
protected class |
TreeCompiler.CompilationUnitVisitor
To create the class infos for a compilation unit |
class |
TreeCompiler.PseudoError
To test the existance of a class without loading it |
Field Summary | |
protected TreeCompiler.ClassInfoLoader |
classInfoLoader
The class info loader |
protected TreeClassLoader |
classLoader
The classloader |
protected ClassPool |
classPool
The class pool |
protected Interpreter |
interpreter
The interpreter |
Constructor Summary | |
TreeCompiler(Interpreter i)
Creates a new compiler |
Method Summary | |
protected boolean |
classExists(java.lang.String name)
Whether a class exists in a compiled form |
java.lang.Class |
compile(java.lang.String name)
Compiles a compilation unit |
protected java.lang.Class |
compileClass(ClassInfo ci,
java.lang.String name)
Compiles the given class info |
java.lang.Class |
compileClasses(java.lang.String name)
Compiles all the classes in the class pool |
java.lang.Class |
compileTree(Context ctx,
TypeDeclaration td)
Compiles a single class |
protected void |
loadClass(java.lang.String name)
Searches for a class, loads its class info structure |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected Interpreter interpreter
protected TreeClassLoader classLoader
protected TreeCompiler.ClassInfoLoader classInfoLoader
protected ClassPool classPool
Constructor Detail |
public TreeCompiler(Interpreter i)
i
- the current interpreterMethod Detail |
public java.lang.Class compile(java.lang.String name) throws java.lang.ClassNotFoundException
name
- the name of the class to compilepublic java.lang.Class compileClasses(java.lang.String name) throws java.lang.ClassNotFoundException
name
- the name of the class to returnpublic java.lang.Class compileTree(Context ctx, TypeDeclaration td)
td
- the type declarationim
- the importation managerprotected java.lang.Class compileClass(ClassInfo ci, java.lang.String name)
ci
- the class info to compilename
- the name of the class to returnprotected boolean classExists(java.lang.String name)
protected void loadClass(java.lang.String name) throws java.lang.ClassNotFoundException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |