Package ghidra.service.graph
Class GraphTypeBuilder
- java.lang.Object
-
- ghidra.service.graph.GraphTypeBuilder
-
public class GraphTypeBuilder extends java.lang.Object
Builder class for building newGraphType
s
-
-
Constructor Summary
Constructors Constructor Description GraphTypeBuilder(java.lang.String name)
Create a new builder
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GraphType
build()
Builds a new GraphTypeGraphTypeBuilder
description(java.lang.String text)
Sets the description for theGraphType
GraphTypeBuilder
edgeType(java.lang.String type)
Defines a new edge typeGraphTypeBuilder
vertexType(java.lang.String type)
Defines a new vertex type
-
-
-
Constructor Detail
-
GraphTypeBuilder
public GraphTypeBuilder(java.lang.String name)
Create a new builder- Parameters:
name
- the name of the newGraphType
-
-
Method Detail
-
description
public GraphTypeBuilder description(java.lang.String text)
Sets the description for theGraphType
- Parameters:
text
- the description- Returns:
- this GraphTypeBuilder
-
vertexType
public GraphTypeBuilder vertexType(java.lang.String type)
Defines a new vertex type- Parameters:
type
- a string that names a new vertex type- Returns:
- this GraphTypeBuilder
-
edgeType
public GraphTypeBuilder edgeType(java.lang.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
-
-