|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.umd.cs.findbugs.ba.type.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
Field Summary | |
---|---|
private static java.lang.String[] |
emptyList
|
private java.lang.String[] |
missingClassList
|
private java.util.ArrayList<ObjectType> |
supertypeListInBFSOrder
|
private java.util.BitSet |
supertypeSet
|
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 |
Field Detail |
---|
private java.util.BitSet supertypeSet
private java.util.ArrayList<ObjectType> supertypeListInBFSOrder
private java.lang.String[] missingClassList
private static final java.lang.String[] emptyList
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 classespublic 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.ClassNotFoundException
public java.util.Iterator<ObjectType> supertypeInBFSOrderIterator()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |