public void addComment ( Comment comment ) { assertNotNull ( comment ) ; if ( comments == null ) { comments = new TreeSet < Comment > ( new AstNode . PositionComparator ( ) ) ; } comments . add ( comment ) ; comment . setParent ( this ) ; }
Add a comment to the comment set .