Package jadx.core.dex.instructions
Class ArithNode
- java.lang.Object
-
- jadx.core.dex.attributes.AttrNode
-
- jadx.core.dex.attributes.nodes.LineAttrNode
-
- jadx.core.dex.nodes.InsnNode
-
- jadx.core.dex.instructions.ArithNode
-
- All Implemented Interfaces:
IAttributeNode,ILineAttributeNode
public class ArithNode extends InsnNode
-
-
Constructor Summary
Constructors Constructor Description ArithNode(ArithOp op, @Nullable RegisterArg res, InsnArg a, InsnArg b)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ArithNodebuild(jadx.api.plugins.input.insns.InsnData insn, ArithOp op, ArgType type)static ArithNodebuildLit(jadx.api.plugins.input.insns.InsnData insn, ArithOp op, ArgType type)InsnNodecopy()Make copy of InsnNode object.ArithOpgetOp()booleanisSame(InsnNode obj)'Soft' equals, don't compare arguments, only instruction specific parameters.static ArithNodeoneArgOp(ArithOp op, InsnArg res, InsnArg a)Create one argument arithmetic instructions (a+=2).java.lang.StringtoString()-
Methods inherited from class jadx.core.dex.nodes.InsnNode
addArg, addLit, addLit, addReg, addReg, appendArgs, appendAttributes, attachArg, attributesString, baseString, canRemoveResult, canReorder, canThrowException, containsArg, containsVar, containsWrappedInsn, copy, copyAttributesFrom, copyCommonParams, copyWithNewSsaVar, copyWithoutResult, copyWithoutSsa, equals, getArg, getArgIndex, getArgList, getArgsCount, getArguments, getOffset, getRegisterArgs, getResult, getType, hashCode, inheritMetadata, isConstInsn, isDeepEquals, rebindArgs, removeArg, removeArg, replaceArg, setArg, setOffset, setResult, visitArgs, visitArgs, visitInsns, visitInsns, wrapArg
-
Methods inherited from class jadx.core.dex.attributes.nodes.LineAttrNode
addSourceLineFrom, copyLines, getDefPosition, getSourceLine, setDefPosition, setSourceLine
-
Methods inherited from class jadx.core.dex.attributes.AttrNode
add, addAttr, addAttr, addAttr, addAttrs, clearAttributes, contains, contains, copyAttributeFrom, copyAttributesFrom, get, getAll, getAnnotation, getAttributesString, getAttributesStringsList, isAttrStorageEmpty, remove, remove, removeAttr, rewriteAttributeFrom, unloadAttributes
-
-
-
-
Constructor Detail
-
ArithNode
public ArithNode(ArithOp op, @Nullable @Nullable RegisterArg res, InsnArg a, InsnArg b)
-
-
Method Detail
-
build
public static ArithNode build(jadx.api.plugins.input.insns.InsnData insn, ArithOp op, ArgType type)
-
buildLit
public static ArithNode buildLit(jadx.api.plugins.input.insns.InsnData insn, ArithOp op, ArgType type)
-
oneArgOp
public static ArithNode oneArgOp(ArithOp op, InsnArg res, InsnArg a)
Create one argument arithmetic instructions (a+=2). Result is not set (null).- Parameters:
res- argument to change
-
getOp
public ArithOp getOp()
-
isSame
public boolean isSame(InsnNode obj)
Description copied from class:InsnNode'Soft' equals, don't compare arguments, only instruction specific parameters.
-
copy
public InsnNode copy()
Description copied from class:InsnNodeMake copy of InsnNode object.
NOTE: can't copy instruction with result argument (SSA variable can't be used in two different assigns).
Prefer use next methods:InsnNode.copyWithoutResult()to explicitly state that result not neededInsnNode.copy(RegisterArg)to provide new result argInsnNode.copyWithNewSsaVar(MethodNode)to make new SSA variable for result arg
-
-