Class VarnodeTranslator


  • public class VarnodeTranslator
    extends java.lang.Object
    • Constructor Detail

      • VarnodeTranslator

        public VarnodeTranslator​(Language lang)
      • VarnodeTranslator

        public VarnodeTranslator​(Program program)
    • Method Detail

      • 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 Register[] getRegisters()
        Get all defined registers for the program this translator was created with.
        Returns:
        all defined registers