Package ghidra.service.graph
Class AttributedEdge
- java.lang.Object
-
- ghidra.service.graph.Attributed
-
- ghidra.service.graph.AttributedEdge
-
public class AttributedEdge extends Attributed
Generic directed graph edge implementation
-
-
Field Summary
Fields Change Modifier and Type Field Description NEW static java.lang.StringEDGE_TYPE_KEY
-
Constructor Summary
Constructors Change Constructor Description AttributedEdge(java.lang.String id)Constructs a new GhidraEdge
-
Method Summary
All Methods Instance Methods Concrete Methods Change Modifier and Type Method Description booleanequals(java.lang.Object obj)NEW java.lang.StringgetEdgeType()Returns the edge type for this edgejava.lang.StringgetId()Returns the id for this edgeinthashCode()NEW voidsetEdgeType(java.lang.String edgeType)Sets the edge type for this edge.java.lang.StringtoString()-
Methods inherited from class ghidra.service.graph.Attributed
clear, entrySet, getAttribute, getAttributes, getDescription, hasAttribute, isEmpty, keys, putAttributes, removeAttribute, setAttribute, setDescription, size, values
-
-
-
-
Field Detail
-
EDGE_TYPE_KEY NEW
public static final java.lang.String EDGE_TYPE_KEY
- See Also:
- Constant Field Values
Constructor Detail
-
AttributedEdge
public AttributedEdge(java.lang.String id)
Constructs a new GhidraEdge- Parameters:
id- the unique id for the edge
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getId
public java.lang.String getId()
Returns the id for this edge- Returns:
- the id for this edge
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
getEdgeType NEW
public java.lang.String getEdgeType()
Returns the edge type for this edge- Returns:
- the edge type for this edge
-
setEdgeType NEW
public void setEdgeType(java.lang.String edgeType)
Sets the edge type for this edge. Should be a value defined by theGraphTypefor 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 forGraphType- Parameters:
edgeType- the edge type for this edge
-
-