Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Class PrimordialClassLoader.PathElement  view PrimordialClassLoader.PathElement download

  extended byBootstrap.PrimordialClassLoader.ClasspathElement
      extended byBootstrap.PrimordialClassLoader.PathElement
Enclosing class:

static class PrimordialClassLoader.PathElement
extends PrimordialClassLoader.ClasspathElement

A regular path string in the CLASSPATH.

Field Summary
(package private)  java.util.Set entries
(package private)  java.lang.String path
Constructor Summary
(package private) PrimordialClassLoader.PathElement(java.lang.String path)
Method Summary
private  void buildEntries(java.lang.String pathn)
(package private)  boolean containsResource(java.lang.String name)
(package private) getResourceAsStream(java.lang.String name)
          Open a stream to read the given resource, or return null if resource cannot be found.
(package private)  void initializeEntryMap()
(package private)  java.util.Iterator listPackage(java.lang.String packagename)
          Iterate over all classes in the given package.
(package private)  java.util.Iterator listPackage(java.lang.String pathn, boolean recursive)
(package private)  java.util.Iterator listPackages()
private  void listPackages(java.lang.String dir, java.util.HashSet pkgs)
 java.lang.String toString()
          Convert this Object to a human-readable String.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Field Detail


java.lang.String path


java.util.Set entries
Constructor Detail


PrimordialClassLoader.PathElement(java.lang.String path)
Method Detail


void initializeEntryMap()


public java.lang.String toString()
Description copied from class: java.lang.Object
Convert this Object to a human-readable String. There are no limits placed on how long this String should be or what it should contain. We suggest you make it as intuitive as possible to be able to place it into System.out.println() 55 and such.

It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.

This method will be called when performing string concatenation with this object. If the result is null, string concatenation will instead use "null".

The default implementation returns getClass().getName() + "@" + Integer.toHexString(hashCode()).

getResourceAsStream getResourceAsStream(java.lang.String name)
Description copied from class: PrimordialClassLoader.ClasspathElement
Open a stream to read the given resource, or return null if resource cannot be found.

Specified by:
getResourceAsStream in class PrimordialClassLoader.ClasspathElement


boolean containsResource(java.lang.String name)
Specified by:
containsResource in class PrimordialClassLoader.ClasspathElement


java.util.Iterator listPackage(java.lang.String pathn,
                               boolean recursive)
Specified by:
listPackage in class PrimordialClassLoader.ClasspathElement


java.util.Iterator listPackages()
Specified by:
listPackages in class PrimordialClassLoader.ClasspathElement


private void listPackages(java.lang.String dir,
                          java.util.HashSet pkgs)


private void buildEntries(java.lang.String pathn)


java.util.Iterator listPackage(java.lang.String packagename)
Iterate over all classes in the given package.