|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.umd.cs.findbugs.ba.type2.SubtypeQueryResult
public class SubtypeQueryResult
Class to cache the result of an isSubtype() query so future lookups are fast. Also caches a complete list of supertypes in BFS order.
TypeRepository| Constructor Summary | |
|---|---|
SubtypeQueryResult()
Constructor. |
|
| Method Summary | |
|---|---|
void |
addSupertype(ObjectType supertype)
Set given ObjectType as a supertype. |
void |
finish(java.lang.String[] missingClassList)
Mark the object as complete. |
java.util.Set<ObjectType> |
getSupertypeSet(ObjectType subtype,
TypeRepository repos)
Get set of supertypes. |
boolean |
isSupertype(ObjectType type)
Check to see if given ObjectType is a supertype. |
java.util.Iterator<ObjectType> |
supertypeInBFSOrderIterator()
Get iterator over supertypes in BFS order. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SubtypeQueryResult()
| Method Detail |
|---|
public void addSupertype(ObjectType supertype)
supertype - the supertypepublic void finish(java.lang.String[] missingClassList)
missingClassList - the list of names of missing classes
public boolean isSupertype(ObjectType type)
throws java.lang.ClassNotFoundException
type - potential supertype
java.lang.ClassNotFoundException
public java.util.Set<ObjectType> getSupertypeSet(ObjectType subtype,
TypeRepository repos)
throws java.lang.ClassNotFoundException
subtype - the subtype (for which this object stores the set of supertypes)repos - the TypeRepository
java.lang.ClassNotFoundExceptionpublic java.util.Iterator<ObjectType> supertypeInBFSOrderIterator()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||