src/hotspot/share/classfile/classLoader.hpp
changeset 54257 21702e87efdf
parent 53884 1a7b57d02107
child 54340 2221f042556d
equal deleted inserted replaced
54256:aa937fac07f3 54257:21702e87efdf
   112 // For java image files
   112 // For java image files
   113 class ClassPathImageEntry: public ClassPathEntry {
   113 class ClassPathImageEntry: public ClassPathEntry {
   114 private:
   114 private:
   115   JImageFile* _jimage;
   115   JImageFile* _jimage;
   116   const char* _name;
   116   const char* _name;
       
   117   DEBUG_ONLY(static ClassPathImageEntry* _singleton;)
   117 public:
   118 public:
   118   bool is_modules_image() const;
   119   bool is_modules_image() const;
   119   bool is_jar_file() const { return false; }
   120   bool is_jar_file() const { return false; }
   120   bool is_open() const { return _jimage != NULL; }
   121   bool is_open() const { return _jimage != NULL; }
   121   const char* name() const { return _name == NULL ? "" : _name; }
   122   const char* name() const { return _name == NULL ? "" : _name; }
   436 
   437 
   437   // obtain package name from a fully qualified class name
   438   // obtain package name from a fully qualified class name
   438   // *bad_class_name is set to true if there's a problem with parsing class_name, to
   439   // *bad_class_name is set to true if there's a problem with parsing class_name, to
   439   // distinguish from a class_name with no package name, as both cases have a NULL return value
   440   // distinguish from a class_name with no package name, as both cases have a NULL return value
   440   static const char* package_from_name(const char* const class_name, bool* bad_class_name = NULL);
   441   static const char* package_from_name(const char* const class_name, bool* bad_class_name = NULL);
   441 
       
   442   static bool is_modules_image(const char* name) { return string_ends_with(name, MODULES_IMAGE_NAME); }
       
   443 
   442 
   444   // Debugging
   443   // Debugging
   445   static void verify()              PRODUCT_RETURN;
   444   static void verify()              PRODUCT_RETURN;
   446 };
   445 };
   447 
   446