Class ReferenceLocation
java.lang.Object
com.pnfsoftware.jeb.core.units.code.asm.analyzer.ReferenceLocation
Locations of
IReference source/targets, can be either an internal address or an external
routine.
Immutable; the referenced location may not be though.-
Method Summary
Modifier and TypeMethodDescriptionstatic ReferenceLocationcreate(long address) Create a reference location for an internal address.static ReferenceLocationcreateFromExternalRoutine(INativeMethodItem externalRtn) Create a reference location for an external routine.booleanGet the external method.Get the internal address.inthashCode()booleanDetermine whether this location is an external method.booleanDetermine whether this location is an internal address.toString()
-
Method Details
-
create
Create a reference location for an internal address.- Parameters:
address- internal address- Returns:
- reference location
-
createFromExternalRoutine
Create a reference location for an external routine.- Parameters:
externalRtn- external routine- Returns:
- reference location
-
isInternalAddress
public boolean isInternalAddress()Determine whether this location is an internal address.- Returns:
- true for an internal address
-
getInternalAddress
Get the internal address.- Returns:
- internal address, or null if this location is not an internal address
-
isExternalMethod
public boolean isExternalMethod()Determine whether this location is an external method.- Returns:
- true for an external method
-
getExternalMethod
Get the external method.- Returns:
- external method, or null if this location is not an external method
-
hashCode
public int hashCode() -
equals
-
toString
-