Class CodeCommentManager<U extends ICodeUnit>
java.lang.Object
com.pnfsoftware.jeb.core.units.impl.AbstractCommentManager<ICodeCoordinates,U>
com.pnfsoftware.jeb.core.units.code.CodeCommentManager<U>
- Type Parameters:
U- code unit type
- Direct Known Subclasses:
DexCommentManager,NativeCommentManager
@Ser
public class CodeCommentManager<U extends ICodeUnit>
extends AbstractCommentManager<ICodeCoordinates,U>
A comment manager for
code units. The secondary addressing scheme uses
ICodeCoordinates.
Specialized implementations exist.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intComment is intended for assembly output only.static final intComment contains decompiler metadata.static final intComment is intended for source output only.Fields inherited from class com.pnfsoftware.jeb.core.units.impl.AbstractCommentManager
COMMENT_FLAG_FAVORITE, INLINE, PRE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddressToCoord(String address) Convert a string address to a custom coordinate.coordToAddress(ICodeCoordinates coord) Convert a custom coordinate to a string address.Methods inherited from class com.pnfsoftware.jeb.core.units.impl.AbstractCommentManager
addMetaComment, addMetaComment, addMetaComment2, addMetaComment2, formatComments, formatComments2, formatMetaComment, formatMetaFlags, getComment, getComment2, getComments, getComments2, getInlineComment, getInlineComment2, getMetaCommentObjects, getMetaCommentObjects2, getMetaComments, getMetaComments, getMetaComments2, getMetaComments2, getPreComment, getPreComment2, getPrimary, getPrimary2, getPrimaryMap, getPrimaryMap2, getUnit, putAll, removeMetaComment, removeMetaComment2, setComment, setComment2, setInlineComment, setInlineComment, setInlineComment2, setInlineComment2, setPreComment, setPreComment, setPreComment2, setPreComment2, setPrimary, setPrimary2
-
Field Details
-
COMMENT_FLAG_ASSEMBLY_ONLY
public static final int COMMENT_FLAG_ASSEMBLY_ONLYComment is intended for assembly output only.- See Also:
-
COMMENT_FLAG_SOURCE_ONLY
public static final int COMMENT_FLAG_SOURCE_ONLYComment is intended for source output only.- See Also:
-
COMMENT_FLAG_DECOMPILER_META
public static final int COMMENT_FLAG_DECOMPILER_METAComment contains decompiler metadata.- See Also:
-
-
Constructor Details
-
CodeCommentManager
Create a code comment manager.- Parameters:
unit- code unit
-
-
Method Details
-
addressToCoord
Description copied from class:AbstractCommentManagerConvert a string address to a custom coordinate.- Specified by:
addressToCoordin classAbstractCommentManager<ICodeCoordinates,U extends ICodeUnit> - Parameters:
address- address- Returns:
- coordinate, or null if the address cannot be converted
-
coordToAddress
Description copied from class:AbstractCommentManagerConvert a custom coordinate to a string address.- Specified by:
coordToAddressin classAbstractCommentManager<ICodeCoordinates,U extends ICodeUnit> - Parameters:
coord- coordinate- Returns:
- address, or null if the coordinate cannot be converted
-