java.lang.Object | |
↳ | com.pnfsoftware.jeb.core.units.code.asm.processor.AbstractInstruction<T extends com.pnfsoftware.jeb.core.units.code.IInstructionOperand> |
A skeleton implementation for instruction
s.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
protected T[] extends IInstructionOperand | operands | ||||||||||
protected int | processorMode |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
AbstractInstruction(BytesBlock code, String mnemonic, T[] operands, int processorMode) |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
boolean | equals(Object obj) | ||||||||||
String |
format(Object context)
Format the instruction for printing
| ||||||||||
byte[] | getCode(ByteOrder byteOrder) | ||||||||||
byte[] |
getCode()
Get the binary code that makes up this instruction.
| ||||||||||
BytesBlock | getCodeBlock() | ||||||||||
int | getCountOfOperands() | ||||||||||
Set<InstructionFlags> | getInstructionFlags() | ||||||||||
String |
getMnemonic()
The instruction mnemonic.
| ||||||||||
T |
getOperand(int index)
Get an operand by index.
| ||||||||||
T[] |
getOperands()
Get the list of operands for this instruction.
| ||||||||||
String |
getPrefix()
Get the instruction's optional prefix(es).
| ||||||||||
int |
getProcessorMode()
Get the mode the processor was in when it parsed and created this instruction.
| ||||||||||
int |
getSize()
Get the instruction size in bytes.
| ||||||||||
int | hashCode() | ||||||||||
String | toString() |
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
CodePointer | buildNextEntryPoint(long instructionAddress) | ||||||||||
boolean | isBreakingFlow(IInsnEmulator<T> emulator) | ||||||||||
boolean | isJump(IInsnEmulator<T> emulator) | ||||||||||
boolean | isRoutineCall(IInsnEmulator<T> emulator) |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.pnfsoftware.jeb.core.units.code.IInstruction
|
Format the instruction for printing
context | optional context, used to provide a better representation of the instruction (for instance, resolving strings or method names.) The implementor should do its best to return a decent result even if context is null. |
---|
Get the binary code that makes up this instruction.
The instruction mnemonic.
Get an operand by index.
Get the list of operands for this instruction.
Get the instruction's optional prefix(es).
Get the mode the processor was in when it parsed and created this instruction. Refer to
IProcessor
MODE_xxx
.
Get the instruction size in bytes.