Interface IDAllocObjectInfo
- All Superinterfaces:
IDElement,IDExpression,IDInvokeInfo,IInstructionOperand
dexdec IR object-allocation information that can be used by invoke instructions.
This low-level IR expression corresponds to the Dalvik opcode new-instance, which
allocates uninitialized memory for an object to be constructed. (It is the first part of a
new-object construction, the second part being the object initialization via <init
calls.)
It is recommended to keep this IR for as little time as possible in a method context (example: it
may be generated during an intermediate optimization phase, and discarded/optimized away before
the end of the optimization). This IR cannot be evaluated.
-
Field Summary
Fields inherited from interface com.pnfsoftware.jeb.core.units.code.android.ir.IDElement
DEFAULT_COMPARE_WITH_FULL_EQUALITY -
Method Summary
Modifier and TypeMethodDescriptionDuplicate this element.Retrieve the type of object being allocated.Methods inherited from interface com.pnfsoftware.jeb.core.units.code.android.ir.IDElement
equalsEx, format, toString, toStringMethods inherited from interface com.pnfsoftware.jeb.core.units.code.android.ir.IDExpression
asArrayElt, asCallInfo, asImm, asInstanceField, asInstruction, asNewArrayInfo, asNewInfo, asOperation, asReferenceType, asStaticField, asVar, canThrow, checkType, collectAllPhysicalMethodIndices, collectAllPhysicalOffsets, collectSubExpressions, collectVarIds, copy, countVariable, evaluate, evaluate, evaluate, find, findByType, findByType, findParent, findParent, generateAST, getCustomCanThrow, getData, getOrigin, getPhysicalMethodIndex, getPhysicalOffset, getSubExpressions, getType, getVarIds, hasSideEffects, isArrayElt, isCallInfo, isCallInfo, isCastOperation, isCastOperation, isConstantImm, isConstantImm, isImm, isInstanceField, isInstruction, isNewArrayInfo, isNewInfo, isOperation, isOperation, isOperation, isOperation, isOperation, isOperation, isOperation, isReferenceType, isStaticField, isStringImm, isVar, isVar, removeData, replaceSubExpression, replaceVariable, setCustomCanThrow, setData, setOrigin, setPhysicalMethodIndex, setPhysicalOffset, setType, setType, setType, spawn, transferMetadataFrom, updateAllPhysicalMethodIndices, updateAllPhysicalOffsets, updateTypes, visitDepthPost, visitDepthPost, visitDepthPost, visitDepthPre, visitDepthPre, visitDepthPreMethods inherited from interface com.pnfsoftware.jeb.core.units.code.android.ir.IDInvokeInfo
getArgumentsMethods inherited from interface com.pnfsoftware.jeb.core.units.code.IInstructionOperand
format
-
Method Details
-
getObjectType
IJavaType getObjectType()Retrieve the type of object being allocated.- Returns:
- the object type, which should be the same as
the IR type
-
duplicate
IDAllocObjectInfo duplicate()Description copied from interface:IDElementDuplicate this element.- Specified by:
duplicatein interfaceIDElement- Specified by:
duplicatein interfaceIDExpression- Specified by:
duplicatein interfaceIDInvokeInfo- Returns:
- a deep copy of this element; the type of the duplicated element should be the same as this element's type
-