Package ghidra.program.model.block
Class CodeBlockReferenceImpl
java.lang.Object
ghidra.program.model.block.CodeBlockReferenceImpl
- All Implemented Interfaces:
CodeBlockReference
CodeBlockReferenceImpl implements a CodeBlockReference.
A CodeBlockReference represents the flow from one source block
to a destination block, including information about how
flow occurs between the two blocks (JUMP, CALL, etc..).
The reference is the address in the destination
block that is actually flowed to by some instruction in the source block.
The referent is the address of the instruction in
the source block that flows to the destination block.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the Destination Block address.Returns the Destination CodeBlock.Returns the type of flow from the Source to the Destination CodeBlock.Returns the address in the Destination block that is referenced by the Source block.Returns the address of the instruction in the Source Block that refers to the Destination block.Returns the Source Block address.Returns the Source CodeBlock.toString()
-
Constructor Details
-
CodeBlockReferenceImpl
public CodeBlockReferenceImpl(CodeBlock source, CodeBlock destination, FlowType flowType, Address reference, Address referent) Constructor for a CodeBlockReferenceImpl- Parameters:
source- source block for this flowdestination- destination block for this flowflowType- how we flowreference- reference address in destination blockreferent- address of instruction in source block that flows to destination block.
-
-
Method Details
-
getSourceBlock
Description copied from interface:CodeBlockReferenceReturns the Source CodeBlock.- Specified by:
getSourceBlockin interfaceCodeBlockReference- Returns:
- the Source CodeBlock
- See Also:
-
getDestinationBlock
Description copied from interface:CodeBlockReferenceReturns the Destination CodeBlock.- Specified by:
getDestinationBlockin interfaceCodeBlockReference- Returns:
- the Destination CodeBlock
- See Also:
-
getFlowType
Description copied from interface:CodeBlockReferenceReturns the type of flow from the Source to the Destination CodeBlock.- Specified by:
getFlowTypein interfaceCodeBlockReference- Returns:
- the type of flow
- See Also:
-
getReference
Description copied from interface:CodeBlockReferenceReturns the address in the Destination block that is referenced by the Source block.- Specified by:
getReferencein interfaceCodeBlockReference- Returns:
- the address in the Destination block that is referenced by the Source block
- See Also:
-
getReferent
Description copied from interface:CodeBlockReferenceReturns the address of the instruction in the Source Block that refers to the Destination block.- Specified by:
getReferentin interfaceCodeBlockReference- Returns:
- the address of the instruction in the Source Block that refers to the Destination block
- See Also:
-
getSourceAddress
Description copied from interface:CodeBlockReferenceReturns the Source Block address. The source address should only occur in one block.- Specified by:
getSourceAddressin interfaceCodeBlockReference- Returns:
- the Source Block address
- See Also:
-
getDestinationAddress
Description copied from interface:CodeBlockReferenceReturns the Destination Block address. The destination address should only occur in one block.- Specified by:
getDestinationAddressin interfaceCodeBlockReference- Returns:
- the Destination Block address
- See Also:
-
toString
-