class TypeTree extends Object
OutriggerServerImpl
Modifier and Type | Class and Description |
---|---|
(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.
|
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
TypeTree() |
Modifier and Type | Method and Description |
---|---|
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).
|
private Hashtable subclasses
private static final Random numgen
private static final String ROOT
private Vector classVector(String whichClass)
Iterator subTypes(String className)
void addTypes(EntryRep bits)
Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.