Class AttributedEdge

java.lang.Object
ghidra.service.graph.Attributed
ghidra.service.graph.AttributedEdge

public class AttributedEdge extends Attributed
Generic directed graph edge implementation
  • Field Details

  • Constructor Details

    • AttributedEdge

      public AttributedEdge(String id)
      Constructs a new GhidraEdge
      Parameters:
      id - the unique id for the edge
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getId

      public String getId()
      Returns the id for this edge
      Returns:
      the id for this edge
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • getEdgeType

      public String getEdgeType()
      Returns the edge type for this edge
      Returns:
      the edge type for this edge
    • setEdgeType

      public void setEdgeType(String edgeType)
      Sets the edge type for this edge. Should be a value defined by the GraphType for this graph, but there is no enforcement for this. If the value is not defined in GraphType, it will be rendered using the default edge color for GraphType
      Parameters:
      edgeType - the edge type for this edge