Package ghidra.program.model.block.graph
Class CodeBlockVertex
java.lang.Object
ghidra.program.model.block.graph.CodeBlockVertex
- All Implemented Interfaces:
Comparable<CodeBlockVertex>
A class for representing a code block within a graph.
-
Constructor Summary
ConstructorDescriptionCodeBlockVertex
(CodeBlock codeBlock) Constructor.CodeBlockVertex
(String name) A constructor that allows for the creation of dummy nodes. -
Method Summary
-
Constructor Details
-
CodeBlockVertex
Constructor.- Parameters:
codeBlock
- the code block for this vertex
-
CodeBlockVertex
A constructor that allows for the creation of dummy nodes. This is useful in graphs where multiple entry or exit points need to be parented by a single vertex.- Parameters:
name
- the name of this vertex
-
-
Method Details
-
getCodeBlock
-
getName
-
isDummy
public boolean isDummy()Returns true if this vertex is not backed by a code block.- Returns:
- true if this vertex is not backed by a code block.
-
toString
-
compareTo
- Specified by:
compareTo
in interfaceComparable<CodeBlockVertex>
-
equals
-
hashCode
public int hashCode()
-