Class CallSiteAnalysis
- java.lang.Object
-
- com.ensoftcorp.open.commons.language.LanguageSpecificAnalysis
-
- com.ensoftcorp.open.commons.analysis.CallSiteAnalysis.LanguageSpecificCallSiteAnalysis
-
- com.ensoftcorp.open.java.commons.analysis.CallSiteAnalysis
-
public class CallSiteAnalysis extends com.ensoftcorp.open.commons.analysis.CallSiteAnalysis.LanguageSpecificCallSiteAnalysis
-
-
Constructor Summary
Constructors Constructor Description CallSiteAnalysis()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.ensoftcorp.atlas.core.db.set.AtlasSet<com.ensoftcorp.atlas.core.db.graph.Node>getCallSites(com.ensoftcorp.atlas.core.db.graph.Node function)java.lang.StringgetDescription()static com.ensoftcorp.atlas.core.db.set.AtlasSet<com.ensoftcorp.atlas.core.db.graph.Node>getMethodCallSites(com.ensoftcorp.atlas.core.db.graph.Node method)Given methods, return possible call sites.static com.ensoftcorp.atlas.core.query.QgetMethodCallSites(com.ensoftcorp.atlas.core.query.Q methods)Given methods, return possible call sites.java.lang.StringgetName()static com.ensoftcorp.atlas.core.query.QgetSignature(com.ensoftcorp.atlas.core.db.graph.Node callsite)Given a callsite, return the method representing the invoked signaturestatic com.ensoftcorp.atlas.core.query.QgetSignature(com.ensoftcorp.atlas.core.query.Q callsites)Given call sites, returns the methods representing the invoked signaturesjava.util.Set<java.lang.String>getSupportedLanguages()static com.ensoftcorp.atlas.core.db.set.AtlasSet<com.ensoftcorp.atlas.core.db.graph.Node>getTargetMethods(com.ensoftcorp.atlas.core.db.graph.Node callsite)Given a StaticDispatchCallSite or a DynamicDispatchCallSite, return the methods which may have been invoked.static com.ensoftcorp.atlas.core.db.set.AtlasSet<com.ensoftcorp.atlas.core.db.graph.Node>getTargetMethods(com.ensoftcorp.atlas.core.query.Q callsites)Returns the set of target methods that the given callsites could resolve tocom.ensoftcorp.atlas.core.db.set.AtlasSet<com.ensoftcorp.atlas.core.db.graph.Node>getTargets(com.ensoftcorp.atlas.core.db.graph.Node callSite)static com.ensoftcorp.atlas.core.query.QresolveToFormalIdentity(com.ensoftcorp.atlas.core.db.graph.Node callsite)Given aXCSG.CallSite, return formalXCSG.Identityarguments for possible target methods.static com.ensoftcorp.atlas.core.query.QresolveToFormalIdentity(com.ensoftcorp.atlas.core.query.Q callsites)GivenXCSG.CallSites, return formalXCSG.Identityarguments for possible target methods.
-
-
-
Method Detail
-
resolveToFormalIdentity
public static com.ensoftcorp.atlas.core.query.Q resolveToFormalIdentity(com.ensoftcorp.atlas.core.db.graph.Node callsite)
Given aXCSG.CallSite, return formalXCSG.Identityarguments for possible target methods.
-
resolveToFormalIdentity
public static com.ensoftcorp.atlas.core.query.Q resolveToFormalIdentity(com.ensoftcorp.atlas.core.query.Q callsites)
GivenXCSG.CallSites, return formalXCSG.Identityarguments for possible target methods.
-
getSignature
public static com.ensoftcorp.atlas.core.query.Q getSignature(com.ensoftcorp.atlas.core.db.graph.Node callsite)
Given a callsite, return the method representing the invoked signature- Parameters:
callsite-- Returns:
-
getSignature
public static com.ensoftcorp.atlas.core.query.Q getSignature(com.ensoftcorp.atlas.core.query.Q callsites)
Given call sites, returns the methods representing the invoked signatures- Parameters:
callsites-- Returns:
-
getTargetMethods
public static com.ensoftcorp.atlas.core.db.set.AtlasSet<com.ensoftcorp.atlas.core.db.graph.Node> getTargetMethods(com.ensoftcorp.atlas.core.query.Q callsites)
Returns the set of target methods that the given callsites could resolve to- Parameters:
callsites-- Returns:
-
getTargetMethods
public static com.ensoftcorp.atlas.core.db.set.AtlasSet<com.ensoftcorp.atlas.core.db.graph.Node> getTargetMethods(com.ensoftcorp.atlas.core.db.graph.Node callsite)
Given a StaticDispatchCallSite or a DynamicDispatchCallSite, return the methods which may have been invoked.- Parameters:
callsite-- Returns:
-
getMethodCallSites
public static com.ensoftcorp.atlas.core.query.Q getMethodCallSites(com.ensoftcorp.atlas.core.query.Q methods)
Given methods, return possible call sites.- Parameters:
methods-- Returns:
-
getMethodCallSites
public static com.ensoftcorp.atlas.core.db.set.AtlasSet<com.ensoftcorp.atlas.core.db.graph.Node> getMethodCallSites(com.ensoftcorp.atlas.core.db.graph.Node method)
Given methods, return possible call sites.- Parameters:
method-- Returns:
-
getTargets
public com.ensoftcorp.atlas.core.db.set.AtlasSet<com.ensoftcorp.atlas.core.db.graph.Node> getTargets(com.ensoftcorp.atlas.core.db.graph.Node callSite)
- Specified by:
getTargetsin classcom.ensoftcorp.open.commons.analysis.CallSiteAnalysis.LanguageSpecificCallSiteAnalysis
-
getCallSites
public com.ensoftcorp.atlas.core.db.set.AtlasSet<com.ensoftcorp.atlas.core.db.graph.Node> getCallSites(com.ensoftcorp.atlas.core.db.graph.Node function)
- Specified by:
getCallSitesin classcom.ensoftcorp.open.commons.analysis.CallSiteAnalysis.LanguageSpecificCallSiteAnalysis
-
getName
public java.lang.String getName()
- Specified by:
getNamein classcom.ensoftcorp.open.commons.language.LanguageSpecificAnalysis
-
getDescription
public java.lang.String getDescription()
- Specified by:
getDescriptionin classcom.ensoftcorp.open.commons.language.LanguageSpecificAnalysis
-
getSupportedLanguages
public java.util.Set<java.lang.String> getSupportedLanguages()
- Specified by:
getSupportedLanguagesin classcom.ensoftcorp.open.commons.language.LanguageSpecificAnalysis
-
-