Class AbstractCommentManager<C,U extends IInteractiveUnit>
java.lang.Object
com.pnfsoftware.jeb.core.units.impl.AbstractCommentManager<C,U>
- Direct Known Subclasses:
CodeCommentManager,CommentManager
An comment manager to be used by
IInteractiveUnit. It supports dual-addressing: regular
string address (per the interactive unit specifications), and custom address (methods for custom
addressing are suffixed by 2). The conversion methods are to be provided by the
subclass.
Specialized subclasses exist.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intConstant used to identify an item's primary comment inlined with the item (for rendering purposes).static final intConstant used to identify an item's primary comment located above/before the item (for rendering purposes). -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddMetaComment(String address, MetaComment c, boolean notify) booleanaddMetaComment2(C coord, MetaComment c, boolean notify) abstract CaddressToCoord(String address) abstract StringcoordToAddress(C coord) formatComments(String address, boolean includePre, int flagsMustHave, int flagsCantHave) formatComments2(C coord, boolean includePre, int flagsMustHave, int flagsCantHave) formatMetaFlags(int flags) getComment(String address) getComment2(C coord) getInlineComment(String address) getInlineComment2(C coord) getMetaCommentObjects(String address, int flagsMustHave, int flagsCantHave) getMetaCommentObjects2(C coord, int flagsMustHave, int flagsCantHave) getMetaComments(String address) getMetaComments(String address, int flagsMustHave, int flagsCantHave) getMetaComments2(C coord) getMetaComments2(C coord, int flagsMustHave, int flagsCantHave) getPreComment(String address) getPreComment2(C coord) getPrimary(String address, int position) getPrimary2(C coord, int position) getPrimaryMap(int position) getPrimaryMap2(int position) getUnit()voidbooleanremoveMetaComment(String address, MetaComment c, boolean notify) booleanremoveMetaComment2(C coord, MetaComment c, boolean notify) booleansetComment(String address, Comment comment, boolean notify) booleansetComment2(C coord, Comment comment, boolean notify) booleansetInlineComment(String address, String value) booleansetInlineComment(String address, String value, boolean notify) booleansetInlineComment2(C coord, String value) booleansetInlineComment2(C coord, String value, boolean notify) booleansetPreComment(String address, String value) booleansetPreComment(String address, String value, boolean notify) booleansetPreComment2(C coord, String value) booleansetPreComment2(C coord, String value, boolean notify) booleansetPrimary(String address, String value, int position, boolean notify) booleansetPrimary2(C coord, String value, int position, boolean notify)
-
Field Details
-
INLINE
public static final int INLINEConstant used to identify an item's primary comment inlined with the item (for rendering purposes).- See Also:
-
PRE
public static final int PREConstant used to identify an item's primary comment located above/before the item (for rendering purposes).- See Also:
-
COMMENT_FLAG_FAVORITE
public static final int COMMENT_FLAG_FAVORITE- See Also:
-
-
Constructor Details
-
AbstractCommentManager
-
-
Method Details
-
getUnit
-
getComments
-
getComments2
-
getComment
-
getComment2
-
setComment
-
setComment2
-
getInlineComment
-
setInlineComment
-
setInlineComment
-
getInlineComment2
-
setInlineComment2
-
setInlineComment2
-
getPreComment
-
setPreComment
-
setPreComment
-
getPreComment2
-
setPreComment2
-
setPreComment2
-
getPrimary
-
getPrimary2
-
setPrimary
-
setPrimary2
-
getPrimaryMap
-
getPrimaryMap2
-
getMetaComments
-
getMetaComments2
-
getMetaComments
public Collection<MetaComment> getMetaComments(String address, int flagsMustHave, int flagsCantHave) -
getMetaComments2
-
addMetaComment
-
addMetaComment2
-
removeMetaComment
-
removeMetaComment2
-
getMetaCommentObjects
public Collection<String> getMetaCommentObjects(String address, int flagsMustHave, int flagsCantHave) -
getMetaCommentObjects2
-
formatComments
-
formatComments2
-
formatMetaComment
-
formatMetaFlags
-
addressToCoord
-
coordToAddress
-
putAll
-