Class IdentifierCoordinates
java.lang.Object
com.pnfsoftware.jeb.core.output.code.coordinates.IdentifierCoordinates
Coordinates for identifiers associated with a method or a specific instruction.
-
Constructor Summary
ConstructorsConstructorDescriptionIdentifierCoordinates(ICodeCoordinates base, int varindex) Create identifier coordinates. -
Method Summary
Modifier and TypeMethodDescriptionbooleangetBase()Get the base coordinates.intGet the method index containing this identifier.intGet the instruction offset when the base is instruction-level.intGet the identifier index.inthashCode()booleanDetermine whether this identifier index denotes a virtual identifier.toString()
-
Constructor Details
-
IdentifierCoordinates
Create identifier coordinates.- Parameters:
base- base method or instruction coordinatesvarindex- identifier index
-
-
Method Details
-
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
-1for 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:
trueif the identifier is virtual
-
hashCode
public int hashCode() -
equals
-
toString
-