Class ReferenceLocation

java.lang.Object
com.pnfsoftware.jeb.core.units.code.asm.analyzer.ReferenceLocation

@Ser public class ReferenceLocation extends Object
Locations of IReference source/targets, can be either an internal address or an external routine. Immutable; the referenced location may not be though.
  • Method Details

    • create

      public static ReferenceLocation create(long address)
      Create a reference location for an internal address.
      Parameters:
      address - internal address
      Returns:
      reference location
    • createFromExternalRoutine

      public static ReferenceLocation createFromExternalRoutine(INativeMethodItem externalRtn)
      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

      public Long 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

      public INativeMethodItem getExternalMethod()
      Get the external method.
      Returns:
      external method, or null if this location is not an external method
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object