Package com.tonic.analysis.dataflow
Class DataFlowEdge
- java.lang.Object
-
- com.tonic.analysis.dataflow.DataFlowEdge
-
public class DataFlowEdge extends Object
An edge in the data flow graph connecting two nodes.
-
-
Constructor Summary
Constructors Constructor Description DataFlowEdge(DataFlowNode source, DataFlowNode target, DataFlowEdgeType type)Creates an edge with no explicit label.DataFlowEdge(DataFlowNode source, DataFlowNode target, DataFlowEdgeType type, String label)Creates a labeled edge.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringgetDisplayLabel()Returns the explicit label, falling back to the edge type's display name when unset.StringgetLabel()DataFlowNodegetSource()DataFlowNodegetTarget()StringgetTooltip()Builds multi-line tooltip text naming the edge type, its endpoints and the label.DataFlowEdgeTypegetType()inthashCode()booleanpropagatesTaint()Reports whether taint propagates along this edge, as decided by the edge type.StringtoString()
-
-
-
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 fromtarget- the node the data flows totype- 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 fromtarget- the node the data flows totype- the kind of data flowlabel- 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
-
getType
public DataFlowEdgeType getType()
- Returns:
- the type
-
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
-
-