Class GraphTypeBuilder

java.lang.Object
ghidra.service.graph.GraphTypeBuilder

public class GraphTypeBuilder extends Object
Builder class for building new GraphTypes
  • Constructor Details

    • GraphTypeBuilder

      public GraphTypeBuilder(String name)
      Create a new builder
      Parameters:
      name - the name of the new GraphType
  • Method Details

    • description

      public GraphTypeBuilder description(String text)
      Sets the description for the GraphType
      Parameters:
      text - the description
      Returns:
      this GraphTypeBuilder
    • vertexType

      public GraphTypeBuilder vertexType(String type)
      Defines a new vertex type
      Parameters:
      type - a string that names a new vertex type
      Returns:
      this GraphTypeBuilder
    • edgeType

      public GraphTypeBuilder edgeType(String type)
      Defines a new edge type
      Parameters:
      type - a string that names a new edge type
      Returns:
      this GraphTypeBuilder
    • build

      public GraphType build()
      Builds a new GraphType
      Returns:
      a new GraphType