The value of level must be from 0 * to getHeight()-1, and the item number * must be from 0 to 2level-1. * * @see #getHeight() * @see #getRoot() * @see #getLoader(String) */ public ClassLoader getLoader(int level, int item) { return loaders[level][item]; } /** * Return the loader having the giving name at * the standard denotation of binary tree nodes. * * @see #getHeight() * @see #getRoot() * @see #getLoader(int,int) */ public ClassLoader getLoader(String name) { int[] index = denotation.indexFor(name); int level = index[0]; int item = index[1]; return loaders[level][item]; } /** * Return the tree's height. * * @see #ClassLoadersBTree(ClassLoader,int) * @see #getLoader(int,int) * @see #getLoader(String) */ public int getHeight() { return loaders.length; } /** * Return the tree's root loader. * * @see #ClassLoadersBTree(ClassLoader,int) * @see #getLoader(int,int) * @see #getLoader(String) */ public ClassLoader getRoot() { return loaders[0][0]; } }