Interface IInstructionOperand
- All Known Subinterfaces:
IDAllocObjectInfo
,IDalvikInstructionParameter
,IDArrayElt
,IDCallInfo
,IDElement
,IDExpression
,IDField
,IDImm
,IDIndex
,IDInstanceField
,IDInstruction
,IDInvokeInfo
,IDNewArrayInfo
,IDNewInfo
,IDOperation
,IDReferenceType
,IDStaticField
,IDSwitchData
,IDTarget
,IDVar
,IEAssign
,IECall
,IECompose
,IECond
,IEGeneric
,IEGroup
,IEGroupElt
,IEImm
,IEJump
,IEJumpFar
,IEJumpWithOptionalCondition
,IEMem
,IENop
,IEOperation
,IERange
,IEReturn
,IESlice
,IEStatement
,IESwitch
,IEUntranslatedInstruction
,IEVar
,IInstructionOperandCMA
,IInstructionOperandGeneric
,IInstructionOperandList
,IInstructionOperandRegisterBased
,IInstructionOperandSized
- All Known Implementing Classes:
AbstractInstructionOperandGeneric
,AbstractInstructionOperandList
,Operand
Base definition for instruction operands.
-
Method Summary
Modifier and TypeMethodDescriptionformat
(IInstruction insn, long address) Format the operand, assuming it is used by an instruction at the provided address.
-
Method Details
-
format
Format the operand, assuming it is used by an instruction at the provided address.- Parameters:
insn
- optional instruction using this operand. Note that this operand may not be directly returned byinsn.getOperands()
, e.g., in the case of instructions with nested operandsaddress
- optional instruction address, 0 if none. The instruction address is sometimes necessary to properly render PC-dependent operands- Returns:
- simple string representation of the operand
-