Class IdentifierCoordinates

java.lang.Object
com.pnfsoftware.jeb.core.output.code.coordinates.IdentifierCoordinates

@Ser public class IdentifierCoordinates extends Object
Coordinates for identifiers associated with a method or a specific instruction.
  • Constructor Details

    • IdentifierCoordinates

      public IdentifierCoordinates(ICodeCoordinates base, int varindex)
      Create identifier coordinates.
      Parameters:
      base - base method or instruction coordinates
      varindex - identifier index
  • Method Details

    • getBase

      public ICodeCoordinates getBase()
      Get the base coordinates.
      Returns:
      the base method or instruction coordinates
    • getMethodIndex

      public int getMethodIndex()
      Get the method index containing this identifier.
      Returns:
      the method index
    • getMethodOffset

      public int getMethodOffset()
      Get the instruction offset when the base is instruction-level.
      Returns:
      the instruction offset, or -1 for method-level coordinates
    • getVariableIndex

      public int getVariableIndex()
      Get the identifier index.
      Returns:
      the identifier index
    • isVirtual

      public boolean isVirtual()
      Determine whether this identifier index denotes a virtual identifier.
      Returns:
      true if the identifier is virtual
    • 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