Class AbstractProgramContext

    • Field Detail

      • registerNameMap

        protected java.util.Map<java.lang.String,​Register> registerNameMap
      • registers

        protected Register[] registers
      • baseContextRegister

        protected Register baseContextRegister
      • defaultDisassemblyContext

        protected RegisterValue defaultDisassemblyContext
    • Constructor Detail

      • AbstractProgramContext

        protected AbstractProgramContext​(Register[] registers)
    • Method Detail

      • hasNonFlowingContext

        public final boolean hasNonFlowingContext()
        Specified by:
        hasNonFlowingContext in interface ProgramContext
        Returns:
        true if one or more non-flowing context registers fields have been defined within the base processor context register.
      • initNameMap

        protected void initNameMap()
      • getProcessorStateRegisters

        public final Register[] getProcessorStateRegisters()
        Description copied from interface: ProgramContext
        Gets the registers for this context that are used for processor context states.
        Specified by:
        getProcessorStateRegisters in interface ProgramContext
        Returns:
        all processor context registers
      • getRegister

        public final Register getRegister​(java.lang.String name)
        Description copied from interface: ProgramContext
        Get a Register object given the name of a register
        Specified by:
        getRegister in interface ProgramContext
        Parameters:
        name - the name of the register.
        Returns:
        The register with the given name or null if no register has that name.
      • getRegisters

        public final Register[] getRegisters()
        Description copied from interface: ProgramContext
        Get all the register descriptions defined for this program context.
        Specified by:
        getRegisters in interface ProgramContext
        Returns:
        array of defined register descriptions
      • setDefaultDisassemblyContext

        public final void setDefaultDisassemblyContext​(RegisterValue value)
        Description copied from interface: ProgramContext
        Set the initial disassembly context to be used when initiating disassmbly
        Specified by:
        setDefaultDisassemblyContext in interface ProgramContext
        Parameters:
        value - context register value