Package jadx.core.dex.instructions.args
Class RegisterArg
- java.lang.Object
-
- jadx.core.dex.attributes.AttrNode
-
- jadx.core.dex.instructions.args.Typed
-
- jadx.core.dex.instructions.args.InsnArg
-
- jadx.core.dex.instructions.args.RegisterArg
-
- All Implemented Interfaces:
IAttributeNode,Named
public class RegisterArg extends InsnArg implements Named
-
-
Field Summary
Fields Modifier and Type Field Description protected intregNumstatic java.lang.StringSUPER_ARG_NAMEstatic java.lang.StringTHIS_ARG_NAME-
Fields inherited from class jadx.core.dex.instructions.args.InsnArg
parentInsn
-
-
Constructor Summary
Constructors Constructor Description RegisterArg(int rn, ArgType type)
-
Method Summary
-
Methods inherited from class jadx.core.dex.instructions.args.InsnArg
copyCommonParams, getParentInsn, isAnyThis, isConst, isFalse, isInsnWrap, isLiteral, isNamed, isSameCodeVar, isSameConst, isSameVar, isThis, isTrue, isUseVar, isZeroConst, isZeroLiteral, lit, lit, reg, reg, reg, setParentInsn, typeImmutableIfKnownReg, typeImmutableReg, typeImmutableReg, unwrap, wrapArg, wrapInsnIntoArg, wrapInstruction, wrapInstruction
-
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
-
-
-
-
Field Detail
-
THIS_ARG_NAME
public static final java.lang.String THIS_ARG_NAME
- See Also:
- Constant Field Values
-
SUPER_ARG_NAME
public static final java.lang.String SUPER_ARG_NAME
- See Also:
- Constant Field Values
-
regNum
protected final int regNum
-
-
Constructor Detail
-
RegisterArg
public RegisterArg(int rn, ArgType type)
-
-
Method Detail
-
getRegNum
public int getRegNum()
-
isRegister
public boolean isRegister()
- Overrides:
isRegisterin classInsnArg
-
getInitType
public ArgType getInitType()
-
forceSetInitType
public void forceSetInitType(ArgType type)
-
getImmutableType
@Nullable public @Nullable ArgType getImmutableType()
-
isTypeImmutable
public boolean isTypeImmutable()
- Overrides:
isTypeImmutablein classTyped
-
getSVar
public SSAVar getSVar()
-
resetSSAVar
public void resetSSAVar()
-
setNameIfUnknown
public void setNameIfUnknown(java.lang.String name)
-
isNameEquals
public boolean isNameEquals(InsnArg arg)
-
duplicate
public RegisterArg duplicate()
-
duplicate
public RegisterArg duplicate(ArgType initType)
-
duplicateWithNewSSAVar
public RegisterArg duplicateWithNewSSAVar(MethodNode mth)
-
duplicate
public RegisterArg duplicate(int regNum, @Nullable @Nullable SSAVar sVar)
-
duplicate
public RegisterArg duplicate(int regNum, ArgType initType, @Nullable @Nullable SSAVar sVar)
-
getAssignInsn
@Nullable public @Nullable InsnNode getAssignInsn()
-
equalRegisterAndType
public boolean equalRegisterAndType(RegisterArg arg)
-
sameRegAndSVar
public boolean sameRegAndSVar(InsnArg arg)
-
sameReg
public boolean sameReg(InsnArg arg)
-
sameType
public boolean sameType(InsnArg arg)
-
sameCodeVar
public boolean sameCodeVar(RegisterArg arg)
-
isLinkedToOtherSsaVars
public boolean isLinkedToOtherSsaVars()
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
toShortString
public java.lang.String toShortString()
- Overrides:
toShortStringin classInsnArg
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-