Interface JCommentable

All Known Subinterfaces:
JAnonymousClassDef, JAssignableExpr, JBlock, JCatch, JClassDef, JClassDefSection, JDocCommentable, JEnumConstant, JFor, JIf, JMethodDef, JPackageInfoFile, JSourceFile, JStatement, JSwitch, JTry, JVarDeclaration

public interface JCommentable
A program element which can have comments attached to it.
Author:
David M. Lloyd
  • Method Details

    • lineComment

      JComment lineComment()
      Add a line comment.
      Returns:
      the line comment body
    • blockComment

      JComment blockComment()
      Add a block comment.
      Returns:
      the block comment body