Class Edge

    • Constructor Detail

      • Edge

        public Edge​(BasicBlock source,
                    BasicBlock dest)
        Constructor.
        Parameters:
        source - source basic block
        dest - destination basic block
    • Method Detail

      • getId

        public int getId()
      • getType

        @Type
        public int getType()
        Get the type of edge.
      • setType

        public void setType​(@Type
                            int type)
        Set the type of edge.
      • getFlags

        public int getFlags()
        Get the edge flags.
      • setFlags

        public void setFlags​(int flags)
        Set the edge flags.
      • isFlagSet

        public boolean isFlagSet​(int flag)
        Return if given edge flag is set.
        Parameters:
        flag - the edge flag
        Returns:
        true if the flag is set, false otherwise
      • isExceptionEdge

        public boolean isExceptionEdge()
        Is the edge an exception edge?
      • toString

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

        public boolean isBackwardInBytecode()
      • sourceIsTopOfLoop

        public boolean sourceIsTopOfLoop​(@Nonnull
                                         java.util.Set<java.lang.Integer> positions)
      • formatAsString

        public java.lang.String formatAsString​(boolean reverse)
        Return a string representation of the edge.
      • edgeTypeToString

        public static java.lang.String edgeTypeToString​(@Type
                                                        int edgeType)
        Get string representing given edge type.
      • stringToEdgeType

        @Type
        public static int stringToEdgeType​(java.lang.String s)
        Get numeric edge type from string representation.