Class CallSiteAnalysis


  • public class CallSiteAnalysis
    extends com.ensoftcorp.open.commons.analysis.CallSiteAnalysis.LanguageSpecificCallSiteAnalysis
    • 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.String getDescription()  
      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.Q getMethodCallSites​(com.ensoftcorp.atlas.core.query.Q methods)
      Given methods, return possible call sites.
      java.lang.String getName()  
      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
      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
      java.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 to
      com.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.Q resolveToFormalIdentity​(com.ensoftcorp.atlas.core.db.graph.Node callsite)
      Given a XCSG.CallSite, return formal XCSG.Identity arguments for possible target methods.
      static com.ensoftcorp.atlas.core.query.Q resolveToFormalIdentity​(com.ensoftcorp.atlas.core.query.Q callsites)
      Given XCSG.CallSites, return formal XCSG.Identity arguments for possible target methods.
      • Methods inherited from class com.ensoftcorp.open.commons.language.LanguageSpecificAnalysis

        equals, getRegisteredAnalyses, getRegisteredAnalyses, getRegisteredAnalyses, getRegisteredAnalyses, hashCode, loadAnalysisContributions
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CallSiteAnalysis

        public CallSiteAnalysis()
    • Method Detail

      • resolveToFormalIdentity

        public static com.ensoftcorp.atlas.core.query.Q resolveToFormalIdentity​(com.ensoftcorp.atlas.core.db.graph.Node callsite)
        Given a XCSG.CallSite, return formal XCSG.Identity arguments for possible target methods.
      • resolveToFormalIdentity

        public static com.ensoftcorp.atlas.core.query.Q resolveToFormalIdentity​(com.ensoftcorp.atlas.core.query.Q callsites)
        Given XCSG.CallSites, return formal XCSG.Identity arguments 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:
        getTargets in class com.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:
        getCallSites in class com.ensoftcorp.open.commons.analysis.CallSiteAnalysis.LanguageSpecificCallSiteAnalysis
      • getName

        public java.lang.String getName()
        Specified by:
        getName in class com.ensoftcorp.open.commons.language.LanguageSpecificAnalysis
      • getDescription

        public java.lang.String getDescription()
        Specified by:
        getDescription in class com.ensoftcorp.open.commons.language.LanguageSpecificAnalysis
      • getSupportedLanguages

        public java.util.Set<java.lang.String> getSupportedLanguages()
        Specified by:
        getSupportedLanguages in class com.ensoftcorp.open.commons.language.LanguageSpecificAnalysis