| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Field Summary | |
(package private) Vector | classpath_d Vector keeping the directories and zip or jar file paths. |
(package private) final static String | DEFAULT_IMPORT The name of the default qualified import. |
(package private) final static String | JAVA_ROOT Root class in Java. |
(package private) Hashtable | loadedClasses_d Hashtable to keep track of already loaded class files. |
(package private) Hashtable | notFoundClasses_d Hashtable to keep track of class names, that definitely don't exist as fully qualified names. |
(package private) Vector | qualifiedImports_d Vector holding all qualified imports. |
(package private) Hashtable | seenClasses_d Hashtable to keep track of class names, that exist, and that are not ambiguous. |
(package private) SymbolTable | symbolTable_d Reference to the parser's symboltable. |
Constructor Summary | |
JellyJImportManager(SymbolTable symbol) Constructor taking the parser's symbol table as parameter. |
Method Summary | |
void | addQualifiedImport(String qimport) The list of starred imports is maintained by the ImportManager. |
void | addQualifiedImport(Symbol qimport) |
String | canonicalize(String s) |
String | decanonicalize(String s) |
boolean | existsClass(Symbol trueSymbol) Convenience method using symbols instead of String |
boolean | existsClass(String trueName) Checks whether fully qualified class represented by truename exists in directories or zip/jar files defined in CLASSPATH |
String | fullyQualifyName(String simple) Returns the fully qualified name of simple name provided that such a class exists in the packages defined by the starred imports (without ambiguity). |
Symbol | fullyQualifyName(Symbol simple) |
boolean | readClassFile(Symbol symbol, boolean loadUpToRoot) Manages the loading of class files by initiating loading of class header information, loading of fields and loading of methods Triggers recursive loading for super classes and interfaces |
Field Detail |
Vector classpath_d
final static String DEFAULT_IMPORT
final static String JAVA_ROOT
Hashtable loadedClasses_d
Hashtable notFoundClasses_d
Vector qualifiedImports_d
Hashtable seenClasses_d
SymbolTable symbolTable_d
Constructor Detail |
public JellyJImportManager(SymbolTable symbol)
Method Detail |
public void addQualifiedImport(String qimport)
public void addQualifiedImport(Symbol qimport)
public String canonicalize(String s)
public String decanonicalize(String s)
public boolean existsClass(Symbol trueSymbol)
public boolean existsClass(String trueName)
public String fullyQualifyName(String simple)
throws java.lang.Exception
public Symbol fullyQualifyName(Symbol simple)
throws java.lang.Exception
public boolean readClassFile(Symbol symbol, boolean loadUpToRoot)
Association Links |
to Class java.lang.String
to Class java.util.Vector
to Class jellyj.util.SymbolTable
to Class java.util.Hashtable
to Class java.util.Hashtable
to Class java.util.Hashtable
to Class java.util.Vector
| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |