Package jadx.core.codegen
Class MethodGen
java.lang.Object
jadx.core.codegen.MethodGen
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final AnnotationGenprivate final ClassGenprivate static final org.slf4j.Loggerprivate final MethodNodeprivate final NameGen -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidaddCatchComment(ICodeWriter code, InsnNode insn, boolean raw) booleanaddDefinition(ICodeWriter code) static voidaddFallbackInsns(ICodeWriter code, MethodNode mth, InsnNode[] insnArr, MethodGen.FallbackOption option) voidaddFallbackMethodCode(ICodeWriter code, MethodGen.FallbackOption fallbackOption) voidaddInstructions(ICodeWriter code) private voidprivate voidaddOverrideAnnotation(ICodeWriter code, MethodNode mth) voidaddRegionInsns(ICodeWriter code) private voidprivate booleandumpInsn(ICodeWriter code, InsnGen insnGen, MethodGen.FallbackOption option, int startIndent, @Nullable InsnNode prevInsn, InsnNode insn) voiddumpInstructions(ICodeWriter code) private voidstatic MethodGenReturn fallback variant of method codegenstatic StringgetLabelName(int offset) static StringgetLabelName(IfNode insn) static StringgetLabelName(BlockNode block) private MethodNodeprivate static booleanisCommentEscapeNeeded(InsnNode insn, MethodGen.FallbackOption option) private static boolean
-
Field Details
-
LOG
private static final org.slf4j.Logger LOG -
mth
-
classGen
-
annotationGen
-
nameGen
-
-
Constructor Details
-
MethodGen
-
-
Method Details
-
getClassGen
-
getNameGen
-
getMethodNode
-
addDefinition
-
getMethodForDefinition
-
addOverrideAnnotation
-
addMethodArguments
-
addInstructions
- Throws:
CodegenException
-
addRegionInsns
- Throws:
CodegenException
-
addSimpleMethodCode
-
generateSimpleCode
- Throws:
CodegenException
-
dumpInstructions
-
addFallbackMethodCode
-
addFallbackInsns
public static void addFallbackInsns(ICodeWriter code, MethodNode mth, InsnNode[] insnArr, MethodGen.FallbackOption option) -
dumpInsn
private boolean dumpInsn(ICodeWriter code, InsnGen insnGen, MethodGen.FallbackOption option, int startIndent, @Nullable @Nullable InsnNode prevInsn, InsnNode insn) -
addCatchComment
-
isCommentEscapeNeeded
-
needLabel
-
getFallbackMethodGen
Return fallback variant of method codegen -
getLabelName
-
getLabelName
-
getLabelName
-