Class DexDebugVariableBundle

java.lang.Object
com.pnfsoftware.jeb.core.units.code.android.dex.DexDebugVariableBundle

public class DexDebugVariableBundle extends Object
A collection of IDexDebugVariable.
  • Constructor Details

    • DexDebugVariableBundle

      public DexDebugVariableBundle(Collection<IDexDebugVariable> vars)
      Create a bundle of debug variables.
      Parameters:
      vars - the debug variables
  • Method Details

    • from

      Create a bundle of debug variables.
      Parameters:
      vars - the debug variables
      Returns:
      a debug variable bundle
    • hasVariable

      public boolean hasVariable(int reg)
      Determine whether a variable is known for a register.
      Parameters:
      reg - the register index
      Returns:
      true if a variable is associated with the register
    • findVariable

      public IDexDebugVariable findVariable(int reg)
      Find a variable by register.
      Parameters:
      reg - the register index
      Returns:
      the matching variable, or null if none
    • format

      public String format(IDexUnit dex)
      Format the debug variables.
      Parameters:
      dex - the dex unit used to resolve names
      Returns:
      a formatted representation of the variables