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
-
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:CodeBlockReference
Returns the Source CodeBlock.- Specified by:
getSourceBlock
in interfaceCodeBlockReference
- Returns:
- the Source CodeBlock
- See Also:
-
getDestinationBlock
Description copied from interface:CodeBlockReference
Returns the Destination CodeBlock.- Specified by:
getDestinationBlock
in interfaceCodeBlockReference
- Returns:
- the Destination CodeBlock
- See Also:
-
getFlowType
Description copied from interface:CodeBlockReference
Returns the type of flow from the Source to the Destination CodeBlock.- Specified by:
getFlowType
in interfaceCodeBlockReference
- Returns:
- the type of flow
- See Also:
-
getReference
Description copied from interface:CodeBlockReference
Returns the address in the Destination block that is referenced by the Source block.- Specified by:
getReference
in interfaceCodeBlockReference
- Returns:
- the address in the Destination block that is referenced by the Source block
- See Also:
-
getReferent
Description copied from interface:CodeBlockReference
Returns the address of the instruction in the Source Block that refers to the Destination block.- Specified by:
getReferent
in interfaceCodeBlockReference
- Returns:
- the address of the instruction in the Source Block that refers to the Destination block
- See Also:
-
getSourceAddress
Description copied from interface:CodeBlockReference
Returns the Source Block address. The source address should only occur in one block.- Specified by:
getSourceAddress
in interfaceCodeBlockReference
- Returns:
- the Source Block address
- See Also:
-
getDestinationAddress
Description copied from interface:CodeBlockReference
Returns the Destination Block address. The destination address should only occur in one block.- Specified by:
getDestinationAddress
in interfaceCodeBlockReference
- Returns:
- the Destination Block address
- See Also:
-
toString
-