use of com.google.security.zynamics.binnavi.Gui.GraphWindows.CommentDialogs.EmptyComment in project binnavi by google.
the class LocalInstructionCommentAccessor method getAllComments.
@Override
public ArrayList<Pair<INaviInstruction, IComment>> getAllComments() {
final ArrayList<Pair<INaviInstruction, IComment>> values = new ArrayList<>();
final CCodeNodeComments currentComments = m_codeNode.getComments();
for (final INaviInstruction instruction : m_codeNode.getInstructions()) {
final List<IComment> comments = currentComments.getLocalInstructionComment(instruction);
if ((comments == null) || comments.isEmpty()) {
values.add(new Pair<INaviInstruction, IComment>(instruction, new EmptyComment()));
continue;
} else {
for (final IComment comment : comments) {
values.add(new Pair<INaviInstruction, IComment>(instruction, comment));
}
values.add(new Pair<INaviInstruction, IComment>(instruction, new EmptyComment()));
}
}
return values;
}
Aggregations