Package jadx.core.dex.visitors
Class ConstInlineVisitor
java.lang.Object
jadx.core.dex.visitors.AbstractVisitor
jadx.core.dex.visitors.ConstInlineVisitor
- All Implemented Interfaces:
IDexTreeVisitor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static voidaddExplicitCast(InsnNode insn, LiteralArg arg) private static booleancanIgnoreInsn(RegisterArg reg) private static booleancanInline(MethodNode mth, RegisterArg arg) private static booleancanUseNull(InsnNode insn, RegisterArg useArg) private static voidcheckInsn(MethodNode mth, InsnNode insn, List<InsnNode> toRemove) private static booleanforbidNullArgInline(InsnNode insn, RegisterArg useArg) private static booleanforbidNullInlines(SSAVar sVar) Don't inline null objectstatic voidprocess(MethodNode mth) private static booleanreplaceArg(MethodNode mth, RegisterArg arg, InsnArg constArg, InsnNode constInsn) private static booleanreplaceConst(MethodNode mth, InsnNode constInsn, InsnArg constArg) voidvisit(MethodNode mth) Visit methodMethods inherited from class jadx.core.dex.visitors.AbstractVisitor
getName, init, toString, visit
-
Constructor Details
-
ConstInlineVisitor
public ConstInlineVisitor()
-
-
Method Details
-
visit
Description copied from interface:IDexTreeVisitorVisit method- Specified by:
visitin interfaceIDexTreeVisitor- Overrides:
visitin classAbstractVisitor- Throws:
JadxException
-
process
-
checkInsn
-
forbidNullInlines
Don't inline null object -
forbidNullArgInline
-
canUseNull
-
replaceConst
-
canIgnoreInsn
-
canInline
-
replaceArg
private static boolean replaceArg(MethodNode mth, RegisterArg arg, InsnArg constArg, InsnNode constInsn) -
addExplicitCast
-