Class SequentialEdge

  • All Implemented Interfaces:
    Edge<Statement,​Edge,​CFG>

    public class SequentialEdge
    extends Edge
    A sequential edge connecting two statement. The abstract analysis state does not get modified when traversing this edge.
    • Constructor Detail

      • SequentialEdge

        public SequentialEdge​(Statement source,
                              Statement destination)
        Builds the edge.
        Parameters:
        source - the source statement
        destination - the destination statement
    • Method Detail

      • toString

        public java.lang.String toString()
        Specified by:
        toString in class Edge
      • canBeSimplified

        public boolean canBeSimplified()
        Description copied from interface: Edge
        Yields true if and only if this edge could be simplified if one of the nodes connected to it is simplified (i.e., removed from the graph).
        Returns:
        whether or not this edge can be simplified
      • newInstance

        public SequentialEdge newInstance​(Statement source,
                                          Statement destination)
        Description copied from interface: Edge
        Builds a new instance of this edge, connecting the given nodes.
        Parameters:
        source - the source node
        destination - the destination node
        Returns:
        a new instance of this edge, connecting the given nodes