Package ghidra.program.model.util
Class ReferenceState
- java.lang.Object
-
- ghidra.program.model.ReferenceManagerTestDouble
-
- ghidra.program.model.util.ReferenceState
-
- All Implemented Interfaces:
ReferenceManager
public class ReferenceState extends ReferenceManagerTestDouble
-
-
Field Summary
Fields Modifier and Type Field Description static int
FUNCTION_BODY_SIZE
-
Fields inherited from interface ghidra.program.model.symbol.ReferenceManager
MNEMONIC
-
-
Constructor Summary
Constructors Constructor Description ReferenceState()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Reference[]
getFlowReferencesFrom(Address address)
Get the flow references from the given address.AddressIterator
getReferenceSourceIterator(AddressSetView addrSet, boolean forward)
Returns an iterator over all addresses that are the "From" address in a reference, restricted by the given address set.ReferenceIterator
getReferencesTo(Address address)
Get an iterator over all references that have the given address as their "To" address.-
Methods inherited from class ghidra.program.model.ReferenceManagerTestDouble
addExternalReference, addExternalReference, addExternalReference, addMemoryReference, addOffsetMemReference, addReference, addRegisterReference, addShiftedMemReference, addStackReference, delete, getExternalReferences, getPrimaryReferenceFrom, getReference, getReferenceCountFrom, getReferenceCountTo, getReferenceDestinationCount, getReferenceDestinationIterator, getReferenceDestinationIterator, getReferencedVariable, getReferenceIterator, getReferenceLevel, getReferencesFrom, getReferencesFrom, getReferenceSourceCount, getReferenceSourceIterator, getReferencesTo, hasFlowReferencesFrom, hasReferencesFrom, hasReferencesFrom, hasReferencesTo, removeAllReferencesFrom, removeAllReferencesFrom, removeAssociation, setAssociation, setPrimary, updateRefType
-
-
-
-
Field Detail
-
FUNCTION_BODY_SIZE
public static final int FUNCTION_BODY_SIZE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getReferencesTo
public ReferenceIterator getReferencesTo(Address address)
Description copied from interface:ReferenceManager
Get an iterator over all references that have the given address as their "To" address.- Specified by:
getReferencesTo
in interfaceReferenceManager
- Overrides:
getReferencesTo
in classReferenceManagerTestDouble
- Parameters:
address
- the address that all references in the iterator refer to.
-
getReferenceSourceIterator
public AddressIterator getReferenceSourceIterator(AddressSetView addrSet, boolean forward)
Description copied from interface:ReferenceManager
Returns an iterator over all addresses that are the "From" address in a reference, restricted by the given address set.- Specified by:
getReferenceSourceIterator
in interfaceReferenceManager
- Overrides:
getReferenceSourceIterator
in classReferenceManagerTestDouble
- Parameters:
addrSet
- the set of address to restrict the iterator.forward
- true means to iterate in the forward direction
-
getFlowReferencesFrom
public Reference[] getFlowReferencesFrom(Address address)
Description copied from interface:ReferenceManager
Get the flow references from the given address.- Specified by:
getFlowReferencesFrom
in interfaceReferenceManager
- Overrides:
getFlowReferencesFrom
in classReferenceManagerTestDouble
- Parameters:
address
- the address of the codeunit to get all flows from.
-
-