[llvm-commits] CVS: llvm-java/include/llvm/Java/ClassFile.h

Alkis Evlogimenos alkis at cs.uiuc.edu
Tue Jul 6 08:33:00 PDT 2004


Changes in directory llvm-java/include/llvm/Java:

ClassFile.h updated: 1.12 -> 1.13

---
Log message:

Implement class lookup by name given the CLASSPATH environment
variable. Classfile now includes a getClassFile() API that looks up a
class specified by its fully qualified name, in the directories
specified by CLASSPATH and caches the parsed ClassFile object for
later queries.


---
Diffs of the changes:  (+5 -1)

Index: llvm-java/include/llvm/Java/ClassFile.h
diff -u llvm-java/include/llvm/Java/ClassFile.h:1.12 llvm-java/include/llvm/Java/ClassFile.h:1.13
--- llvm-java/include/llvm/Java/ClassFile.h:1.12	Thu May 27 14:37:27 2004
+++ llvm-java/include/llvm/Java/ClassFile.h	Tue Jul  6 08:31:35 2004
@@ -61,8 +61,12 @@
     const CodeAttribute* getCodeAttribute(const Attributes& attrs);
 
     class ClassFile {
+        static const ClassFile* readClassFile(std::istream& is);
+        static std::vector<std::string> getClassPath();
+        static std::string getFileForClass(const std::string& classname);
+
     public:
-        static ClassFile* readClassFile(std::istream& is);
+        static const ClassFile* getClassFile(const std::string& classname);
 
         ~ClassFile();
 





More information about the llvm-commits mailing list