Package ghidra.program.model.lang
Interface ProcessorContextView
-
- All Known Subinterfaces:
DisassemblerContext
,Instruction
,ProcessorContext
- All Known Implementing Classes:
AssemblyDefaultContext
,DisassemblerContextImpl
,EmulateDisassemblerContext
,InstructionDB
,InstructionStub
,ProcessorContextImpl
,ProgramProcessorContext
,PseudoDisassemblerContext
,PseudoInstruction
,ReadOnlyProcessorContext
,VarnodeContext
public interface ProcessorContextView
Defines the interface for an object containing the state of all processor registers relative to a specific address.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static java.lang.String
dumpContextValue(RegisterValue value, java.lang.String indent)
static void
dumpContextValue(RegisterValue value, java.lang.String indent, java.lang.StringBuilder buf)
Register
getBaseContextRegister()
Register
getRegister(java.lang.String name)
Get a Register given the name of a registerRegister[]
getRegisters()
Returns all the Registers for the processorRegisterValue
getRegisterValue(Register register)
Get the RegisterValue for the given register.java.math.BigInteger
getValue(Register register, boolean signed)
Get the contents of a processor register as a BigInteger objectboolean
hasValue(Register register)
Returns true if a value is defined for the given register.
-
-
-
Method Detail
-
getBaseContextRegister
Register getBaseContextRegister()
- Returns:
- the base processor context register or null if one has not been defined
-
getRegisters
Register[] getRegisters()
Returns all the Registers for the processor- Returns:
- all the Registers for the processor
-
getRegister
Register getRegister(java.lang.String name)
Get a Register given the name of a register- Parameters:
name
- the name of the register.- Returns:
- The register with the given name.
-
getValue
java.math.BigInteger getValue(Register register, boolean signed)
Get the contents of a processor register as a BigInteger object- Parameters:
register
- register to get the value for- Returns:
- a BigInteger object containing the value of the register if a value exists, otherwise null.
-
getRegisterValue
RegisterValue getRegisterValue(Register register)
Get the RegisterValue for the given register.- Parameters:
register
- register to get the value for- Returns:
- RegisterValue object containing the value of the register if a value exists, otherwise null.
-
hasValue
boolean hasValue(Register register)
Returns true if a value is defined for the given register.- Parameters:
register
- the register to check for a value.- Returns:
- true if the given register has a value.
-
dumpContextValue
static java.lang.String dumpContextValue(RegisterValue value, java.lang.String indent)
-
dumpContextValue
static void dumpContextValue(RegisterValue value, java.lang.String indent, java.lang.StringBuilder buf)
-
-