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.String
EDGE_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 boolean
equals(java.lang.Object obj)
java.lang.String
getEdgeType()
Returns the edge type for this edgejava.lang.String
getId()
Returns the id for this edgeint
hashCode()
void
setEdgeType(java.lang.String edgeType)
Sets the edge type for this edge.java.lang.String
toString()
-
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:
toString
in 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:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in 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 theGraphType
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 forGraphType
- Parameters:
edgeType
- the edge type for this edge
-
-