Interface IDField
- All Superinterfaces:
IDElement
,IDExpression
,IInstructionOperand
- All Known Subinterfaces:
IDInstanceField
,IDStaticField
dexdec
IR generic interface for field elements, that is, static fields and instance
fields. Two pseudo field exists: the instance field for array.length
, and the static
field for Type.class
.
Refer to IDInstanceField
and IDStaticField
.
-
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 field simple name.getIndex()
Retrieve the field index in the corresponding dex unit, if it is an actual field (not a pseudo field).Retrieve the corresponding dex field object.Methods inherited from interface com.pnfsoftware.jeb.core.units.code.android.ir.IDElement
equalsEx, format, toString, toString
Methods 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, visitDepthPre
Methods inherited from interface com.pnfsoftware.jeb.core.units.code.IInstructionOperand
format
-
Method Details
-
getIndex
IDIndex getIndex()Retrieve the field index in the corresponding dex unit, if it is an actual field (not a pseudo field).- Returns:
-
getFieldname
String getFieldname()Retrieve the field simple name. Example:field1
.- Returns:
- the field simple name, null if this object represents a pseudo-field
-
getNativeField
Retrieve the corresponding dex field object.- Parameters:
gctx
- global IR context- Returns:
- the field object, null if this object represents a pseudo-field
-
duplicate
IDField duplicate()Description copied from interface:IDElement
Duplicate this element.- Specified by:
duplicate
in interfaceIDElement
- Specified by:
duplicate
in interfaceIDExpression
- Returns:
- a deep copy of this element; the type of the duplicated element should be the same as this element's type
-