|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.jini.outrigger.TypeTree
class TypeTree
A type tree for entries. It maintains, for each class, a list of known subclasses so that we can walk down the relevant subpart of the subtype tree for a template, looking for matching entries. This list of subtypes is not current garbage collected -- if a subtype was once written, it's subtype entry will never be removed from this tree. All operations are done via class name.
OutriggerServerImpl
Nested Class Summary | |
---|---|
(package private) class |
TypeTree.RandomizedIterator
This class implements a randomized iterator over the TypeTree . |
private class |
TypeTree.TypeTreeIterator
An iterator that will walk through a list of known types. |
Field Summary | |
---|---|
private static Random |
numgen
A generator used to randomize the order of iterator returns |
private static String |
ROOT
Name of the root bucket of the type tree |
private Hashtable |
subclasses
For each type, a vector of known subtypes |
Constructor Summary | |
---|---|
TypeTree()
|
Method Summary | |
---|---|
private boolean |
addKnown(String superclass,
String subclass)
Add the subclass to the list of known subclasses of this superclass. |
(package private) void |
addTypes(EntryRep bits)
Update the type tree with the given bits. |
private Vector |
classVector(String whichClass)
Return the vector of subclasses for the given class. |
(package private) Iterator |
subTypes(String className)
Return an iterator over the subtypes of the given class (including the type itself). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private Hashtable subclasses
private static final Random numgen
private static final String ROOT
Constructor Detail |
---|
TypeTree()
Method Detail |
---|
private Vector classVector(String whichClass)
Iterator subTypes(String className)
void addTypes(EntryRep bits)
private boolean addKnown(String superclass, String subclass)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |