Class AttributedVertex

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

public class AttributedVertex extends Attributed
Graph vertex with attributes
  • Field Details Link icon

  • Constructor Details Link icon

    • AttributedVertex Link icon

      public AttributedVertex(String id, String name)
      Constructs a new GhidraVertex with the given id and name
      Parameters:
      id - the unique id for the vertex
      name - the name for the vertex
    • AttributedVertex Link icon

      public AttributedVertex(String id)
  • Method Details Link icon

    • setName Link icon

      public void setName(String name)
      Sets the name on the vertex
      Parameters:
      name - the new name for the vertex
    • getId Link icon

      public String getId()
      Returns the id for this vertex
      Returns:
      the id for this vertex
    • getName Link icon

      public String getName()
      returns the name of the vertex
      Returns:
      the name of the vertex
    • toString Link icon

      public String toString()
      Overrides:
      toString in class Object
    • hashCode Link icon

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

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • getVertexType Link icon

      public String getVertexType()
      Returns the vertex type for this vertex
      Returns:
      the vertex type for this vertex
    • setVertexType Link icon

      public void setVertexType(String vertexType)
      Sets the vertex type for this vertex. 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 vertex shape and color for the GraphType
      Parameters:
      vertexType - the vertex type for this vertex