Class ParametersInfo

java.lang.Object
com.pnfsoftware.jeb.core.units.code.android.ParametersInfo

public class ParametersInfo extends Object
Dalvik method parameters-to-registers mapping information.
  • Constructor Details

    • ParametersInfo

      public ParametersInfo(int regcnt, List<Integer> paramindexes)
      Create method parameter register information.
      Parameters:
      regcnt - number of registers used to hold all method parameters (including `this` if the method is not static).
      paramindexes - indices of registers holding parameter values (the register index for `this` should not be included)
  • Method Details

    • getRegisterCount

      public int getRegisterCount()
      Number of registers used to hold all method parameters (including `this` if the method is not static).
      Returns:
      the parameter register count
    • getParameterIndices

      public List<Integer> getParameterIndices()
      Indices of registers holding parameter values. The register index for `this` is not included!
      Returns:
      the parameter register indices
    • getParameterIndex

      public int getParameterIndex(int index)
      Get a parameter register index.
      Parameters:
      index - parameter ordinal
      Returns:
      the parameter register index
    • getParameterCount

      public int getParameterCount()
      Get the number of parameters.
      Returns:
      the parameter count
    • hashCode

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

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