Package jadx.core.dex.visitors
Class AttachCommentsVisitor
java.lang.Object
jadx.core.dex.visitors.AbstractVisitor
jadx.core.dex.visitors.AttachCommentsVisitor
- All Implemented Interfaces:
IDexTreeVisitor
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Map<String, List<ICodeComment>> private static final org.slf4j.Logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static voidaddComment(@Nullable IAttributeNode node, ICodeComment comment) private static voidapplyComments(ClassNode cls, List<ICodeComment> clsComments) private List<ICodeComment> getCommentsData(ClassNode cls) private static InsnNodegetInsnByOffset(MethodNode mth, int offset) voidCalled after loading dex tree, but before visitor traversal.private static voidprocessCustomAttach(MethodNode mth, IJavaCodeRef codeRef, ICodeComment comment) private voidupdateCommentsData(@Nullable ICodeData data) booleanVisit classMethods inherited from class jadx.core.dex.visitors.AbstractVisitor
getName, toString, visit
-
Field Details
-
LOG
private static final org.slf4j.Logger LOG -
clsCommentsMap
-
-
Constructor Details
-
AttachCommentsVisitor
public AttachCommentsVisitor()
-
-
Method Details
-
init
Description copied from interface:IDexTreeVisitorCalled after loading dex tree, but before visitor traversal.- Specified by:
initin interfaceIDexTreeVisitor- Overrides:
initin classAbstractVisitor- Throws:
JadxException
-
visit
Description copied from interface:IDexTreeVisitorVisit class- Specified by:
visitin interfaceIDexTreeVisitor- Overrides:
visitin classAbstractVisitor- Returns:
- false for disable child methods and inner classes traversal
-
applyComments
-
getInsnByOffset
-
processCustomAttach
-
addComment
-
getCommentsData
-
updateCommentsData
-