Package jadx.core.dex.instructions.mods
Class ConstructorInsn
- java.lang.Object
-
- jadx.core.dex.attributes.AttrNode
-
- jadx.core.dex.attributes.nodes.LineAttrNode
-
- jadx.core.dex.nodes.InsnNode
-
- jadx.core.dex.instructions.BaseInvokeNode
-
- jadx.core.dex.instructions.mods.ConstructorInsn
-
- All Implemented Interfaces:
IAttributeNode,ILineAttributeNode
public final class ConstructorInsn extends BaseInvokeNode
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classConstructorInsn.CallType
-
Constructor Summary
Constructors Constructor Description ConstructorInsn(MethodInfo callMth, ConstructorInsn.CallType callType)ConstructorInsn(MethodNode mth, InvokeNode invoke)ConstructorInsn(MethodNode mth, InvokeNode invoke, MethodInfo callMth)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InsnNodecopy()Make copy of InsnNode object.MethodInfogetCallMth()ConstructorInsn.CallTypegetCallType()ClassInfogetClassType()intgetFirstArgOffset()Return offset to match method args fromBaseInvokeNode.getCallMth()@Nullable RegisterArggetInstanceArg()booleanisNewInstance()booleanisSame(InsnNode obj)'Soft' equals, don't compare arguments, only instruction specific parameters.booleanisSelf()booleanisStaticCall()booleanisSuper()booleanisThis()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
-
ConstructorInsn
public ConstructorInsn(MethodNode mth, InvokeNode invoke)
-
ConstructorInsn
public ConstructorInsn(MethodNode mth, InvokeNode invoke, MethodInfo callMth)
-
ConstructorInsn
public ConstructorInsn(MethodInfo callMth, ConstructorInsn.CallType callType)
-
-
Method Detail
-
getCallMth
public MethodInfo getCallMth()
- Specified by:
getCallMthin classBaseInvokeNode
-
getInstanceArg
@Nullable public @Nullable RegisterArg getInstanceArg()
- Specified by:
getInstanceArgin classBaseInvokeNode
-
getClassType
public ClassInfo getClassType()
-
getCallType
public ConstructorInsn.CallType getCallType()
-
isNewInstance
public boolean isNewInstance()
-
isSuper
public boolean isSuper()
-
isThis
public boolean isThis()
-
isSelf
public boolean isSelf()
-
isStaticCall
public boolean isStaticCall()
- Specified by:
isStaticCallin classBaseInvokeNode
-
getFirstArgOffset
public int getFirstArgOffset()
Description copied from class:BaseInvokeNodeReturn offset to match method args fromBaseInvokeNode.getCallMth()- Specified by:
getFirstArgOffsetin classBaseInvokeNode
-
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
-
-