Class MethodDependencyGraph.MethodCallEdgeSerializer
java.lang.Object
edu.university.ecs.lab.common.models.sdg.MethodDependencyGraph.MethodCallEdgeSerializer
- All Implemented Interfaces:
com.google.gson.JsonSerializer<org.jgrapht.graph.DefaultWeightedEdge>
- Enclosing class:
- MethodDependencyGraph
public class MethodDependencyGraph.MethodCallEdgeSerializer
extends Object
implements com.google.gson.JsonSerializer<org.jgrapht.graph.DefaultWeightedEdge>
Class to serialize an endpoint as a json object
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
MethodCallEdgeSerializer
public MethodCallEdgeSerializer()
-
-
Method Details
-
serialize
public com.google.gson.JsonElement serialize(org.jgrapht.graph.DefaultWeightedEdge edge, Type typeOfSrc, com.google.gson.JsonSerializationContext context) - Specified by:
serialize
in interfacecom.google.gson.JsonSerializer<org.jgrapht.graph.DefaultWeightedEdge>
-