Package com.ensoftcorp.open.cg.utils
Class CallGraphConstruction
- java.lang.Object
-
- com.ensoftcorp.open.cg.utils.CallGraphConstruction
-
public class CallGraphConstruction extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description CallGraphConstruction()
-
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 existstatic 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 existstatic 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
-
-
-
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
-
-
-