Class VarnodeTranslator

java.lang.Object
ghidra.program.model.pcode.VarnodeTranslator

public class VarnodeTranslator extends Object
  • Constructor Details

    • VarnodeTranslator

      public VarnodeTranslator(Language lang)
    • VarnodeTranslator

      public VarnodeTranslator(Program program)
  • Method Details

    • supportsPcode

      public boolean supportsPcode()
      Returns:
      true if this program's language supports pcode
    • getRegister

      public Register getRegister(Varnode node)
      Translate the Varnode into a register if possible
      Parameters:
      node - varnode to translate
      Returns:
      Register or null if node is not a register
    • getVarnode

      public Varnode getVarnode(Register register)
      Get a varnode that maps to the given register
      Parameters:
      register - register to translate into a varnode
      Returns:
      varnode that reprents the register
    • getRegisters

      public List<Register> getRegisters()
      Get all defined registers for the program this translator was created with.
      Returns:
      all defined registers as unmodifiable list