Interface IDNewArrayInfo
- All Superinterfaces:
IDElement,IDExpression,IDInvokeInfo,IInstructionOperand
dexdec IR element holding new array creation information.
Examples:
int[] ints = new int[3];
^^^^^^^^^^
char[] chars = new char[]{'h', 'e', 'l', 'l', 'o'};
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-
Field Summary
Fields inherited from interface com.pnfsoftware.jeb.core.units.code.android.ir.IDElement
DEFAULT_COMPARE_WITH_FULL_EQUALITY -
Method Summary
Modifier and TypeMethodDescriptionbooleanA convenience method to quickly determine whether all sub-expressions of this IR areimmediates.Duplicate this element.intRetrieve the number of initial values.getInitialValue(int index) Retrieve an initial value.Retrieve the initial values.getSize()Retrieve the array size expression.voidsetInitialValue(int index, IDExpression val) Set an initial value.voidsetInitialValues(List<IDExpression> initvals) Set the initial values.voidsetSize(IDExpression size) Set the array size expression.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
-
getSize
IDExpression getSize()Retrieve the array size expression.- Returns:
- the array size expression
-
setSize
Set the array size expression.- Parameters:
size- array size expression
-
getCountOfInitialValues
int getCountOfInitialValues()Retrieve the number of initial values.- Returns:
- the initial value count
-
getInitialValues
List<IDExpression> getInitialValues()Retrieve the initial values.- Returns:
- the initial value expressions
-
getInitialValue
Retrieve an initial value.- Parameters:
index- initial value index- Returns:
- the initial value expression
-
setInitialValues
Set the initial values.- Parameters:
initvals- initial value expressions
-
setInitialValue
Set an initial value.- Parameters:
index- initial value indexval- initial value expression
-
areSubExpsAllImms
boolean areSubExpsAllImms()A convenience method to quickly determine whether all sub-expressions of this IR areimmediates.- Returns:
- true if all sub-expressions (as returned by
IDExpression.collectSubExpressions(Collection)) are immediates
-
duplicate
IDNewArrayInfo 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
-