Class CallGraphConstruction


  • public class CallGraphConstruction
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void createCallEdge​(com.ensoftcorp.atlas.core.db.graph.Node callsite, com.ensoftcorp.atlas.core.db.graph.Node method, com.ensoftcorp.atlas.core.db.graph.Node targetMethod, java.lang.String methodRelationship, java.lang.String callsiteRelationship)
      Creates a CALL relationship between the method and the target method if one does not already exist
      static void createLibraryCallEdge​(com.ensoftcorp.atlas.core.db.graph.Node callsite, com.ensoftcorp.atlas.core.db.graph.Node method, com.ensoftcorp.atlas.core.db.graph.Node targetMethod, java.lang.String methodRelationship, java.lang.String callsiteRelationship)
      Creates a LIBRARY-CALL relationship between the method and the target method if one does not already exist
      static void tagExistingCallEdge​(com.ensoftcorp.atlas.core.query.Q cgCHA, com.ensoftcorp.atlas.core.query.Q pcfCHA, com.ensoftcorp.atlas.core.db.graph.Node callsite, com.ensoftcorp.atlas.core.db.graph.Node method, com.ensoftcorp.atlas.core.db.graph.Node targetMethod, java.lang.String CALL, java.lang.String PER_CONTROL_FLOW)
      Tags and existing call edge and per control flow edge
      • Methods inherited from class java.lang.Object

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

      • CallGraphConstruction

        public CallGraphConstruction()
    • Method Detail

      • createCallEdge

        public static void createCallEdge​(com.ensoftcorp.atlas.core.db.graph.Node callsite,
                                          com.ensoftcorp.atlas.core.db.graph.Node method,
                                          com.ensoftcorp.atlas.core.db.graph.Node targetMethod,
                                          java.lang.String methodRelationship,
                                          java.lang.String callsiteRelationship)
        Creates a CALL relationship between the method and the target method if one does not already exist
        Parameters:
        method -
        targetMethod -
      • createLibraryCallEdge

        public static void createLibraryCallEdge​(com.ensoftcorp.atlas.core.db.graph.Node callsite,
                                                 com.ensoftcorp.atlas.core.db.graph.Node method,
                                                 com.ensoftcorp.atlas.core.db.graph.Node targetMethod,
                                                 java.lang.String methodRelationship,
                                                 java.lang.String callsiteRelationship)
        Creates a LIBRARY-CALL relationship between the method and the target method if one does not already exist
        Parameters:
        method -
        targetMethod -
      • tagExistingCallEdge

        public static void tagExistingCallEdge​(com.ensoftcorp.atlas.core.query.Q cgCHA,
                                               com.ensoftcorp.atlas.core.query.Q pcfCHA,
                                               com.ensoftcorp.atlas.core.db.graph.Node callsite,
                                               com.ensoftcorp.atlas.core.db.graph.Node method,
                                               com.ensoftcorp.atlas.core.db.graph.Node targetMethod,
                                               java.lang.String CALL,
                                               java.lang.String PER_CONTROL_FLOW)
        Tags and existing call edge and per control flow edge
        Parameters:
        cgCHA -
        pcfCHA -
        callsite -
        method -
        targetMethod -
        CALL -
        PER_CONTROL_FLOW -