Interface IDElement
- All Superinterfaces:
IInstructionOperand
- All Known Subinterfaces:
IDAllocObjectInfo
,IDArrayElt
,IDCallInfo
,IDExpression
,IDField
,IDImm
,IDIndex
,IDInstanceField
,IDInstruction
,IDInvokeInfo
,IDNewArrayInfo
,IDNewInfo
,IDOperation
,IDReferenceType
,IDStaticField
,IDSwitchData
,IDTarget
,IDVar
Base interface for all
dexdec
IR elements.
Currently includes:
IDExpression
and all derived elementsIDIndex
, pool indicesIDTarget
, branch targetsIDSwitchData
, used byswitch opcodes
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final boolean
Determine whetherhashCode
andequals
use all the IR expression elements, including metadata like:
- type
- physical offset
- data map -
Method Summary
Modifier and TypeMethodDescriptioncopy
(DCopyOptions opt) Copy this element.Duplicate this element.boolean
A specialized version ofequals
.void
format
(DFormattingContext fctx) Format this IR using the provided formatting context.toString()
Generate a string representation of this IR using a standard formatting context.toString
(IDMethodContext ctx) Generate a string representation of this IR using a standard formatting context.Methods inherited from interface com.pnfsoftware.jeb.core.units.code.IInstructionOperand
format
-
Field Details
-
DEFAULT_COMPARE_WITH_FULL_EQUALITY
static final boolean DEFAULT_COMPARE_WITH_FULL_EQUALITYDetermine whetherhashCode
andequals
use all the IR expression elements, including metadata like:
- type
- physical offset
- data map
This value is set to false and should not be modified.
- See Also:
-
-
Method Details
-
copy
Copy this element. This operation can be seen as a custom duplication; the resulting element may not be of the same type as this element.- Parameters:
opt
- optional; if one is provided,DCopyOptions.onDup(IDExpression)
will be tried first to create a copy- Returns:
- the copied element
-
duplicate
IDElement duplicate()Duplicate this element.- Returns:
- a deep copy of this element; the type of the duplicated element should be the same as this element's type
-
equalsEx
A specialized version ofequals
.- Parameters:
o
- other objectfullEquality
- if false, metadata elements will not be included in the equality operations- Returns:
-
format
Format this IR using the provided formatting context.- Parameters:
fctx
- mandatory formatting context
-
toString
Generate a string representation of this IR using a standard formatting context.This is a convenience method. For more formatting controls, use
format(DFormattingContext)
.- Returns:
- optional method context
-
toString
String toString()Generate a string representation of this IR using a standard formatting context. Same as callingtoString(null)
.This is a convenience method. For more formatting controls, use
format(DFormattingContext)
.
-