Package ghidra.program.model.pcode
Class VarnodeTranslator
java.lang.Object
ghidra.program.model.pcode.VarnodeTranslator
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetRegister
(Varnode node) Translate the Varnode into a register if possibleGet all defined registers for the program this translator was created with.getVarnode
(Register register) Get a varnode that maps to the given registerboolean
-
Constructor Details
-
VarnodeTranslator
-
VarnodeTranslator
-
-
Method Details
-
supportsPcode
public boolean supportsPcode()- Returns:
- true if this program's language supports pcode
-
getRegister
Translate the Varnode into a register if possible- Parameters:
node
- varnode to translate- Returns:
- Register or null if node is not a register
-
getVarnode
Get a varnode that maps to the given register- Parameters:
register
- register to translate into a varnode- Returns:
- varnode that reprents the register
-
getRegisters
Get all defined registers for the program this translator was created with.- Returns:
- all defined registers as unmodifiable list
-