Class DataFlowEdge


  • public class DataFlowEdge
    extends Object
    An edge in the data flow graph connecting two nodes.
    • Constructor Detail

      • DataFlowEdge

        public DataFlowEdge​(DataFlowNode source,
                            DataFlowNode target,
                            DataFlowEdgeType type)
        Creates an edge with no explicit label.
        Parameters:
        source - the node the data flows from
        target - the node the data flows to
        type - the kind of data flow
      • DataFlowEdge

        public DataFlowEdge​(DataFlowNode source,
                            DataFlowNode target,
                            DataFlowEdgeType type,
                            String label)
        Creates a labeled edge.
        Parameters:
        source - the node the data flows from
        target - the node the data flows to
        type - the kind of data flow
        label - display label, or null to fall back to the type name
    • Method Detail

      • getSource

        public DataFlowNode getSource()
        Returns:
        the source
      • getTarget

        public DataFlowNode getTarget()
        Returns:
        the target
      • getLabel

        public String getLabel()
        Returns:
        the label
      • getDisplayLabel

        public String getDisplayLabel()
        Returns the explicit label, falling back to the edge type's display name when unset.
        Returns:
        the label to render for this edge
      • getTooltip

        public String getTooltip()
        Builds multi-line tooltip text naming the edge type, its endpoints and the label.
        Returns:
        the tooltip text
      • propagatesTaint

        public boolean propagatesTaint()
        Reports whether taint propagates along this edge, as decided by the edge type.
        Returns:
        true if the edge type propagates taint
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object