koala.dynamicjava.interpreter
Class ClassPool
java.lang.Object
|
+--koala.dynamicjava.interpreter.ClassPool
- public class ClassPool
- extends java.lang.Object
The instances of this class contains classinfos
Field Summary |
protected java.util.Map |
classes
The map that contains the classinfos |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
classes
protected java.util.Map classes
- The map that contains the classinfos
ClassPool
public ClassPool()
add
public ClassInfo add(java.lang.String cn,
ClassInfo ci)
- Adds a classinfo to the pool
- Parameters:
cn
- the classnameci
- the classinfo- Returns:
- the given class info
contains
public boolean contains(java.lang.String cn)
- Tests whether this pool contains the given class
- Parameters:
cn
- the classname
get
public ClassInfo get(java.lang.String cn)
- Returns the class info mapped with the given key
- Parameters:
cn
- the classname
getFirstCompilable
public ClassInfo getFirstCompilable()
- Gets the first compilable class in the pool
- Returns:
- null if no class was found
Copyright © 2001 Stephane Hillion. All Rights Reserved.