Package jadx.core.codegen.utils
Class CodeGenUtils
java.lang.Object
jadx.core.codegen.utils.CodeGenUtils
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddClassRenamedComment(ICodeWriter code, ClassNode cls) private static voidaddCodeComment(ICodeWriter code, CodeComment comment, boolean startNewLine) private static voidaddCodeComments(ICodeWriter code, @Nullable IAttributeNode node) static voidaddCodeComments(ICodeWriter code, NotificationAttrNode parent, @Nullable IAttributeNode node) static voidaddComments(ICodeWriter code, NotificationAttrNode node) private static voidaddCommentWithStyle(ICodeWriter code, CommentStyle style, String commentStr) private static voidaddCommentWithStyle(ICodeWriter code, CommentStyle style, BiConsumer<ICodeWriter, String> commentFunc) Insert comment with function, use second arg as new line prefixstatic voidaddError(ICodeWriter code, String errMsg, Throwable cause) static voidaddErrors(ICodeWriter code, NotificationAttrNode node) static voidaddErrorsAndComments(ICodeWriter code, NotificationAttrNode node) static voidaddInputFileInfo(ICodeWriter code, ClassNode cls) static voidaddJadxComment(ICodeWriter code, CommentsLevel level, String commentStr) static voidaddJadxNodeComment(ICodeWriter code, NotificationAttrNode node, CommentsLevel level, BiConsumer<ICodeWriter, String> commentFunc) static voidaddRenamedComment(ICodeWriter code, NotificationAttrNode node, String origName) static voidaddSourceFileInfo(ICodeWriter code, ClassNode node) private static voidappendMultiLineString(ICodeWriter code, String onNewLine, String str) static CodeVargetCodeVar(RegisterArg arg)
-
Field Details
-
NEW_LINE_PATTERN
-
-
Constructor Details
-
CodeGenUtils
private CodeGenUtils()
-
-
Method Details
-
addErrorsAndComments
-
addErrors
-
addError
-
addComments
-
addCodeComments
public static void addCodeComments(ICodeWriter code, NotificationAttrNode parent, @Nullable @Nullable IAttributeNode node) -
addCodeComments
-
addCodeComment
-
addJadxNodeComment
public static void addJadxNodeComment(ICodeWriter code, NotificationAttrNode node, CommentsLevel level, BiConsumer<ICodeWriter, String> commentFunc) -
addJadxComment
-
addCommentWithStyle
-
addCommentWithStyle
private static void addCommentWithStyle(ICodeWriter code, CommentStyle style, BiConsumer<ICodeWriter, String> commentFunc) Insert comment with function, use second arg as new line prefix -
appendMultiLineString
-
addClassRenamedComment
-
addRenamedComment
-
addSourceFileInfo
-
addInputFileInfo
-
getCodeVar
-