Package ghidra.program.model.lang
Class ProcessorContextImpl
java.lang.Object
ghidra.program.model.lang.ProcessorContextImpl
- All Implemented Interfaces:
- ProcessorContext,- ProcessorContextView
An implementation of processor context which contains the state of all
 processor registers.
 
Note that the ContextChangeException will never be thrown by this implementation of Processor
Note that the ContextChangeException will never be thrown by this implementation of Processor
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidclearAll()voidclearRegister(Register register) Clears the register within this context.getRegister(String name) Get a Register given the name of a registerReturns all the Registers for the processor as an unmodifiable listgetRegisterValue(Register register) Get the RegisterValue for the given register.Get the contents of a processor register as a BigInteger objectbooleanReturns true if a value is defined for the given register.voidsetRegisterValue(RegisterValue value) Sets the specified register value within this context.voidsetValue(Register register, BigInteger value) Sets the value for a Register.
- 
Constructor Details- 
ProcessorContextImpl
 
- 
- 
Method Details- 
getBaseContextRegister- Specified by:
- getBaseContextRegisterin interface- ProcessorContextView
- Returns:
- the base processor context register or null if one has not been defined
 
- 
getRegisterDescription copied from interface:ProcessorContextViewGet a Register given the name of a register- Specified by:
- getRegisterin interface- ProcessorContextView
- Parameters:
- name- the name of the register.
- Returns:
- The register with the given name.
 
- 
getRegistersDescription copied from interface:ProcessorContextViewReturns all the Registers for the processor as an unmodifiable list- Specified by:
- getRegistersin interface- ProcessorContextView
- Returns:
- all the Registers for the processor
 
- 
getRegisterValueDescription copied from interface:ProcessorContextViewGet the RegisterValue for the given register.- Specified by:
- getRegisterValuein interface- ProcessorContextView
- Parameters:
- register- register to get the value for
- Returns:
- RegisterValue object containing the value of the register if a value exists, otherwise null.
 
- 
getValueDescription copied from interface:ProcessorContextViewGet the contents of a processor register as a BigInteger object- Specified by:
- getValuein interface- ProcessorContextView
- Parameters:
- register- register to get the value for
- Returns:
- a BigInteger object containing the value of the register if a value exists, otherwise null.
 
- 
hasValueDescription copied from interface:ProcessorContextViewReturns true if a value is defined for the given register.- Specified by:
- hasValuein interface- ProcessorContextView
- Parameters:
- register- the register to check for a value.
- Returns:
- true if the given register has a value.
 
- 
setValueDescription copied from interface:ProcessorContextSets the value for a Register.- Specified by:
- setValuein interface- ProcessorContext
- Parameters:
- register- the register to have its value set
- value- the value for the register (null is not permitted).
 
- 
setRegisterValueDescription copied from interface:ProcessorContextSets the specified register value within this context.- Specified by:
- setRegisterValuein interface- ProcessorContext
- Parameters:
- value- register value
 
- 
clearRegisterDescription copied from interface:ProcessorContextClears the register within this context.- Specified by:
- clearRegisterin interface- ProcessorContext
- Parameters:
- register- register to be cleared.
 
- 
clearAllpublic void clearAll()
 
-