Package ghidra.service.graph
Class GraphType
- java.lang.Object
-
- ghidra.service.graph.GraphType
-
- Direct Known Subclasses:
EmptyGraphType
,ProgramGraphType
public class GraphType extends java.lang.Object
Class that defines a new graph type. It defines the set of valid vertex and edge types
-
-
Constructor Summary
Constructors Constructor Description GraphType(java.lang.String name, java.lang.String description, java.util.List<java.lang.String> vertexTypes, java.util.List<java.lang.String> edgeTypes)
Constructs a new GraphType
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
containsEdgeType(java.lang.String edgeType)
Test if the given string is a valid edge typeboolean
containsVertexType(java.lang.String vertexType)
Test if the given string is a valid vertex typeboolean
equals(java.lang.Object obj)
java.lang.String
getDescription()
Returns a description for this type of graphjava.util.List<java.lang.String>
getEdgeTypes()
Returns a list of valid edge types for graphs of this typejava.lang.String
getName()
Returns a name for this type of graphjava.lang.String
getOptionsName()
java.util.List<java.lang.String>
getVertexTypes()
Returns a list of valid vertex types for graphs of this typeint
hashCode()
-
-
-
Constructor Detail
-
GraphType
public GraphType(java.lang.String name, java.lang.String description, java.util.List<java.lang.String> vertexTypes, java.util.List<java.lang.String> edgeTypes)
Constructs a new GraphType- Parameters:
name
- the name of this GraphType instancedescription
- a brief description for graphs of this typevertexTypes
- a list of all valid vertex types for graphs of this typeedgeTypes
- a list of all valid edge types for graphs of this type
-
-
Method Detail
-
getName
public java.lang.String getName()
Returns a name for this type of graph- Returns:
- a name of this type of graph
-
getDescription
public java.lang.String getDescription()
Returns a description for this type of graph- Returns:
- a description for this type of graph
-
getVertexTypes
public java.util.List<java.lang.String> getVertexTypes()
Returns a list of valid vertex types for graphs of this type- Returns:
- a list of valid vertex types for graphs of this type
-
getEdgeTypes
public java.util.List<java.lang.String> getEdgeTypes()
Returns a list of valid edge types for graphs of this type- Returns:
- a list of valid edge types for graphs of this type
-
containsVertexType
public boolean containsVertexType(java.lang.String vertexType)
Test if the given string is a valid vertex type- Parameters:
vertexType
- the string to test for being a valid vertex type- Returns:
- true if the given string is a valid vertex type
-
containsEdgeType
public boolean containsEdgeType(java.lang.String edgeType)
Test if the given string is a valid edge type- Parameters:
edgeType
- the string to test for being a valid edge type- Returns:
- true if the given string is a valid edge type
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
getOptionsName
public java.lang.String getOptionsName()
-
-