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 int
static final int
Constant used to identify an item's primary comment inlined with the item (for rendering purposes).static final int
Constant used to identify an item's primary comment located above/before the item (for rendering purposes). -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
addMetaComment
(String address, MetaComment c, boolean notify) boolean
addMetaComment2
(C coord, MetaComment c, boolean notify) abstract C
addressToCoord
(String address) abstract String
coordToAddress
(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()
void
boolean
removeMetaComment
(String address, MetaComment c, boolean notify) boolean
removeMetaComment2
(C coord, MetaComment c, boolean notify) boolean
setComment
(String address, Comment comment, boolean notify) boolean
setComment2
(C coord, Comment comment, boolean notify) boolean
setInlineComment
(String address, String value) boolean
setInlineComment
(String address, String value, boolean notify) boolean
setInlineComment2
(C coord, String value) boolean
setInlineComment2
(C coord, String value, boolean notify) boolean
setPreComment
(String address, String value) boolean
setPreComment
(String address, String value, boolean notify) boolean
setPreComment2
(C coord, String value) boolean
setPreComment2
(C coord, String value, boolean notify) boolean
setPrimary
(String address, String value, int position, boolean notify) boolean
setPrimary2
(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
-