|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--harpoon.Analysis.ClassHierarchy
A ClassHierarchy
enumerates reachable/usable classes
and methods.
Constructor Summary | |
ClassHierarchy()
|
Method Summary | |
abstract Set |
callableMethods()
Returns set of all callable methods. |
abstract Set |
children(HClass c)
Returns all usable/reachable children of an HClass . |
abstract Set |
classes()
Returns the set of all reachable/usable classes. |
abstract Set |
instantiatedClasses()
Returns the set of all *instantiated* classes. |
Set |
overrides(HClass hc,
HMethod hm,
boolean all)
Returns the set of methods, excluding hm , declared
in classes which are instances of hc , which override
hm . |
Set |
overrides(HMethod hm)
Returns a set of methods in the hierarchy (not necessary reachable methods) which override the given method. |
Set |
parents(HClass c)
Return the parents of an HClass . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ClassHierarchy()
Method Detail |
public abstract Set children(HClass c)
HClass
.
For an interface class c
, the children include all
reachable classes which implement it as well as any reachable
interfaces which extend it. For a non-interface class, children
are all reachable subclasses.
Set
of HClass
es.public final Set parents(HClass c)
HClass
.
The parents of a class c
are its superclass and
interfaces. The results should be complementary to the
children()
method:
parent(c)
of any class c
returned
by children(cc)
should include cc
.
public final Set overrides(HMethod hm)
public Set overrides(HClass hc, HMethod hm, boolean all)
hm
, declared
in classes which are instances of hc
, which override
hm
. If all
is true, returns all such
methods in the class hierarchy; otherwise returns only the methods
which *immediately* override hm
.
public abstract Set callableMethods()
Set
of HMethod
s.public abstract Set classes()
Set
of HClass
es.public abstract Set instantiatedClasses()
classes()
method. A class is included in the return set only if an
object of that type is at some point created.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |