Class CallSiteAnalysis
- java.lang.Object
-
- com.ensoftcorp.open.commons.analysis.CallSiteAnalysis
-
public class CallSiteAnalysis extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CallSiteAnalysis.LanguageSpecificCallSiteAnalysis
-
Constructor Summary
Constructors Constructor Description CallSiteAnalysis()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
clearLanguageSpecificCallSiteAnalyzerCache()
Clears the cached language specific call site analysis implementationstatic com.ensoftcorp.atlas.core.db.set.AtlasSet<com.ensoftcorp.atlas.core.db.graph.Node>
getCallSites(com.ensoftcorp.atlas.core.db.graph.Node function)
Given a function return the possible call sitesstatic com.ensoftcorp.atlas.core.db.set.AtlasSet<com.ensoftcorp.atlas.core.db.graph.Node>
getCallSites(com.ensoftcorp.atlas.core.db.set.AtlasSet<com.ensoftcorp.atlas.core.db.graph.Node> functions)
Given functions, return possible call sitesstatic com.ensoftcorp.atlas.core.query.Q
getCallSites(com.ensoftcorp.atlas.core.query.Q functions)
Given functions, return possible call sitesstatic com.ensoftcorp.atlas.core.db.set.AtlasSet<com.ensoftcorp.atlas.core.db.graph.Node>
getTargets(com.ensoftcorp.atlas.core.db.graph.Node callSite)
Given a call site, return the functions which may have been invoked.static com.ensoftcorp.atlas.core.db.set.AtlasSet<com.ensoftcorp.atlas.core.db.graph.Node>
getTargets(com.ensoftcorp.atlas.core.db.set.AtlasSet<com.ensoftcorp.atlas.core.db.graph.Node> callSites)
Returns the set of target functions that the given call sites could resolve tostatic com.ensoftcorp.atlas.core.query.Q
getTargets(com.ensoftcorp.atlas.core.query.Q callSites)
Returns the set of target functions that the given call sites could resolve to
-
-
-
Method Detail
-
getTargets
public static com.ensoftcorp.atlas.core.query.Q getTargets(com.ensoftcorp.atlas.core.query.Q callSites)
Returns the set of target functions that the given call sites could resolve to- Parameters:
callsites
-- Returns:
-
getTargets
public static com.ensoftcorp.atlas.core.db.set.AtlasSet<com.ensoftcorp.atlas.core.db.graph.Node> getTargets(com.ensoftcorp.atlas.core.db.set.AtlasSet<com.ensoftcorp.atlas.core.db.graph.Node> callSites)
Returns the set of target functions that the given call sites could resolve to- Parameters:
callsites
-- Returns:
-
getTargets
public static com.ensoftcorp.atlas.core.db.set.AtlasSet<com.ensoftcorp.atlas.core.db.graph.Node> getTargets(com.ensoftcorp.atlas.core.db.graph.Node callSite)
Given a call site, return the functions which may have been invoked.- Parameters:
callsite
-- Returns:
-
getCallSites
public static com.ensoftcorp.atlas.core.db.set.AtlasSet<com.ensoftcorp.atlas.core.db.graph.Node> getCallSites(com.ensoftcorp.atlas.core.db.set.AtlasSet<com.ensoftcorp.atlas.core.db.graph.Node> functions)
Given functions, return possible call sites- Parameters:
methods
-- Returns:
-
getCallSites
public static com.ensoftcorp.atlas.core.query.Q getCallSites(com.ensoftcorp.atlas.core.query.Q functions)
Given functions, return possible call sites- Parameters:
methods
-- Returns:
-
getCallSites
public static com.ensoftcorp.atlas.core.db.set.AtlasSet<com.ensoftcorp.atlas.core.db.graph.Node> getCallSites(com.ensoftcorp.atlas.core.db.graph.Node function)
Given a function return the possible call sites- Parameters:
function
-- Returns:
-
clearLanguageSpecificCallSiteAnalyzerCache
public static void clearLanguageSpecificCallSiteAnalyzerCache()
Clears the cached language specific call site analysis implementation
-
-