|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectharpoon.Analysis.AllCallers
public class AllCallers
AllCallers
calculates the transitive closure of the dual
of the call graph for methods that fulfill a certain condition.
Nested Class Summary | |
---|---|
static interface |
AllCallers.MethodSet
MethodSet defines the interface whose method
select is used in getCallers as a
predicate. |
Constructor Summary | |
---|---|
AllCallers(CallGraph cg)
Creates an AllCallers object that is the dual of
the callgraph cg (of type
harpoon.Analysis.Quads.CallGraoh ). |
|
AllCallers(ClassHierarchy ch,
HCodeFactory hcf)
Creates an AllCallers object using the specified
ClassHierarchy . |
Method Summary | |
---|---|
HMethod[] |
directCallers(HMethod hm)
Returns all the direct callers of the hm method. |
Set |
directCallerSet(HMethod hm)
Returns all the direct callers of the hm method. |
Set |
getCallers(AllCallers.MethodSet ms)
getCallers returns a Set that contains
all indirect and direct callers of callable methods that fulfill
the predicate in the select method of ms . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AllCallers(ClassHierarchy ch, HCodeFactory hcf)
AllCallers
object using the specified
ClassHierarchy
. Currently, hcf
must be a
code factory that generates quad-no-ssa or quad-ssi form because
the dual of the call graph is built using CallGraph
.
public AllCallers(CallGraph cg)
AllCallers
object that is the dual of
the callgraph cg
(of type
harpoon.Analysis.Quads.CallGraoh
).
Method Detail |
---|
public Set getCallers(AllCallers.MethodSet ms)
getCallers
returns a Set
that contains
all indirect and direct callers of callable methods that fulfill
the predicate in the select
method of ms
.
public HMethod[] directCallers(HMethod hm)
hm
method.
public Set directCallerSet(HMethod hm)
hm
method.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |