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 intFUNCTION_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.AddressIteratorgetReferenceSourceIterator(AddressSetView addrSet, boolean forward)Returns an iterator over all addresses that are the "From" address in a reference, restricted by the given address set.ReferenceIteratorgetReferencesTo(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:ReferenceManagerGet an iterator over all references that have the given address as their "To" address.- Specified by:
getReferencesToin interfaceReferenceManager- Overrides:
getReferencesToin 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:ReferenceManagerReturns an iterator over all addresses that are the "From" address in a reference, restricted by the given address set.- Specified by:
getReferenceSourceIteratorin interfaceReferenceManager- Overrides:
getReferenceSourceIteratorin 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:ReferenceManagerGet the flow references from the given address.- Specified by:
getFlowReferencesFromin interfaceReferenceManager- Overrides:
getFlowReferencesFromin classReferenceManagerTestDouble- Parameters:
address- the address of the codeunit to get all flows from.
-
-