Class JCJavaClassLoader

java.lang.Object
com.ibm.dtfj.java.javacore.JCJavaClassLoader
All Implemented Interfaces:
JavaClassLoader

public class JCJavaClassLoader extends Object implements JavaClassLoader
  • Constructor Details

  • Method Details

    • findClass

      public JavaClass findClass(String className)
      Description copied from interface: JavaClassLoader
      Find a named class within this class loader. The class may have been defined in this class loader, or this class loader may have delegated the load to another class loader and cached the result.
      Specified by:
      findClass in interface JavaClassLoader
      Parameters:
      className - of the class to find. Packages should be separated by '/' instead of '.'
      Returns:
      the JavaClass instance, or null if it is not found
    • getCachedClasses

      public Iterator getCachedClasses()
      TODO: javacore appears to only list defined classes per class loader. If this changes in the future, this implementation must be changed.
      Specified by:
      getCachedClasses in interface JavaClassLoader
      Returns:
      an iterator over the collection of classes which are defined in this JavaClassLoader or which were found by delegation to other JavaClassLoaders
      See Also:
    • getDefinedClasses

      public Iterator getDefinedClasses()
      Description copied from interface: JavaClassLoader
      Get the set of classes which are defined in this JavaClassLoader.
      Specified by:
      getDefinedClasses in interface JavaClassLoader
      Returns:
      an iterator over the collection of classes which are defined in this JavaClassLoader
      See Also:
    • getObject

      public JavaObject getObject() throws CorruptDataException
      Description copied from interface: JavaClassLoader
      Get the java.lang.ClassLoader instance associated with this class loader.
      Specified by:
      getObject in interface JavaClassLoader
      Returns:
      a JavaObject representing the java.lang.ClassLoader instance associated with this class loader, or null if there is no Java class loader associated with this low-level class loader.
      Throws:
      CorruptDataException
      See Also:
    • setObject

      public void setObject(JCJavaObject object)
      Parameters:
      object -
    • internalGetClass

      public JCJavaClass internalGetClass(String className)
      NON-DTFJ. For internal building purposes only.
      Parameters:
      className -
    • getInternalObject

      public JCJavaObject getInternalObject()
      NON-DTFJ, don't use outside DTFJ. For internal building purposes only.
    • addClass

      public void addClass(String name)
      NOT in DTFJ
      Parameters:
      name -
    • addClass

      public void addClass(String name, ImagePointer ip)
      NOT in DTFJ
      Parameters:
      name -
    • getPointerID

      public ImagePointer getPointerID()
      NON-DTFJ