java.lang.Object | ||
↳ | com.pnfsoftware.jeb.core.units.code.asm.processor.AbstractInstructionOperandGeneric | |
↳ | com.pnfsoftware.jeb.core.units.code.asm.processor.AbstractInstructionOperandList |
Defines a list of operands that are bound each others.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | FLAG_MASK | Reserved inner space for mask. | |||||||||
int | NO_FLAG | represent no flag | |||||||||
int | SEPARATOR_COLON | : separator | |||||||||
int | SEPARATOR_COMMA | , separator | |||||||||
int | SEPARATOR_HYPHEN | - separator | |||||||||
int | SEPARATOR_SEMI_COLON | ; separator | |||||||||
int | SEPARATOR_SPACE | " " separator | |||||||||
int | SURROUND_BRACES | {} container | |||||||||
int | SURROUND_BRACKETS | [] container | |||||||||
int | SURROUND_CHEVRONS | <> container | |||||||||
int | SURROUND_DOUBLE_QUOTES | "" container | |||||||||
int | SURROUND_PARENTHESES | () container | |||||||||
int | SURROUND_QUOTES | '' container | |||||||||
int | SURROUND_SPACES | "" container | |||||||||
int | USER_DEFINED_1 | Reserved value for Child classes | |||||||||
int | USER_DEFINED_2 | ||||||||||
int | USER_DEFINED_3 | ||||||||||
int | USER_DEFINED_4 | ||||||||||
int | USER_DEFINED_5 | ||||||||||
int | USER_DEFINED_6 | ||||||||||
int | USER_DEFINED_7 | ||||||||||
int | USER_DEFINED_8 |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
AbstractInstructionOperandList(int size, long value, int flags, IInstructionOperandGeneric... operands) | |||||||||||
AbstractInstructionOperandList(int type, int size, long value, int flags, IInstructionOperandGeneric... operands) |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
boolean | equals(Object obj) | ||||||||||
int | getFlags() | ||||||||||
IInstructionOperand[] |
getOperands()
Get the list of operands represented by this operand.
| ||||||||||
String |
getPrefix(IInstruction insn)
Get the optional prefix to be prepended to the formatted operand.
| ||||||||||
String |
getSeparator()
Retrieve the separator of the elements of the list
| ||||||||||
String |
getSuffix(IInstruction insn)
Get the optional suffix to be appended to the formatted operand.
| ||||||||||
int | hashCode() | ||||||||||
IInstructionOperandGeneric |
merge(long address)
Attempt to merge parameter list to 1 parameter.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
CharSequence | formatOperand(IInstruction insn, long address) |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() |
Reserved inner space for mask. Concrete children can have bigger space
represent no flag
: separator
, separator
- separator
; separator
" " separator
{} container
[] container
<> container
"" container
() container
'' container
"" container
Reserved value for Child classes
size | size of the operand |
---|---|
value | internal value, can be 0 if unnecessary |
flags | used to format the operand list : this concerns separator as well as container. For example: BRACKETS | COMMA | SPACE will generate a list [el1, el2,
el3]
|
operands | list of operands |
Get the optional prefix to be prepended to the formatted operand.
Retrieve the separator of the elements of the list
Get the optional suffix to be appended to the formatted operand.
Attempt to merge parameter list to 1 parameter. When not possible, this method will return null. Otherwise, the returned value can be considered as equivalent to the list. For example 0x45, 0 defined for a right shift is equivalent to 0x22, PC+4 is equivalent to its absolute address.