Class StatEdge


  • public class StatEdge
    extends java.lang.Object
    • Field Detail

      • TYPES

        public static final int[] TYPES
      • labeled

        public boolean labeled
      • explicit

        public boolean explicit
      • canInline

        public boolean canInline
      • phantomContinue

        public boolean phantomContinue
    • Method Detail

      • getType

        public int getType()
      • setType

        public void setType​(int type)
      • setSource

        public void setSource​(Statement source)
      • changeSource

        public void changeSource​(Statement newSource)
        Makes this edge point from a different source. This will remove this edge as a successor of the old source, add it as a successor of the new source, and update the predecessor of the current destination.
        Parameters:
        newSource - the new source of this edge
      • getDestination

        public Statement getDestination()
      • setDestination

        public void setDestination​(Statement destination)
      • changeDestination

        public void changeDestination​(Statement newDestination)
        Makes this edge point from a different destination. This will remove this edge as a predecessor of the old destination, add it as a predecessor of the new destination, and update the successor of the current source.
        Parameters:
        newDestination - the new destination of this edge
      • changeType

        public void changeType​(int type)
        Updates the type of this edge. It will notify both the source and the destination of the change.
        Parameters:
        type -
      • remove

        public void remove()
        Removes this edge from the graph. The source will lose this edge as a successor, the destination will lose this edge as a predecessor. and if there is a labeled closure, it will be removed from there as well.
      • removeClosure

        public void removeClosure()
        Remove the closure of this edge. This edge will no longer be labeled.
      • getExceptions

        public java.util.List<java.lang.String> getExceptions()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object