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 Modifier and Type Field Description static java.lang.StringEDGE_TYPE_KEY
-
Constructor Summary
Constructors Constructor Description AttributedEdge(java.lang.String id)Constructs a new GhidraEdge
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.StringgetEdgeType()Returns the edge type for this edgejava.lang.StringgetId()Returns the id for this edgeinthashCode()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
public static final java.lang.String EDGE_TYPE_KEY
- See Also:
- Constant Field Values
-
-
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
public java.lang.String getEdgeType()
Returns the edge type for this edge- Returns:
- the edge type for this edge
-
setEdgeType
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
-
-