Interface JCommentable

All Known Subinterfaces:
JAnonymousClassDef, JAssignableExpr, JBlock, JCatch, JClassDef, JClassDefSection, JDocCommentable, JEnumConstant, JFor, JIf, JMethodDef, JPackageInfoFile, JSourceFile, JStatement, JSwitch, JTry, JVarDeclaration
All Known Implementing Classes:
AbstractJAssignableExpr, AbstractJClassDef, AbstractJDocCommentable, AbstractJGeneric, AbstractJMethodDef, AnnotationJClassDef, AnnotationJMethodDef, AnonymousJClassDef, ArrayLookupJExpr, AssertMessageJStatement, BasicJAnnotatable, BasicJBlock, BasicJCommentable, BasicJStatement, CaseJBlock, ConditionJBlock, ConstructorJMethodDef, DefaultJBlock, DoJBlock, ElseJBlock, EmptyJStatement, EnumConstantJClassDef, EnumJClassDef, ExpressionJStatement, FieldRefJExpr, FinallyJBlock, FirstJVarDeclaration, ForEachJBlock, ForJBlock, GotoJStatement, ImplJAnonymousClassDef, ImplJCatch, ImplJEnumConstant, ImplJIf, ImplJLabel, ImplJParamDeclaration, ImplJSourceFile, ImplJSwitch, ImplJTry, InitJBlock, InnerJAnonymousClassDef, InterfaceJClassDef, JClassDefSectionImpl, KeywordExprJStatement, KeywordJStatement, MethodJMethodDef, NameJExpr, PlainJClassDef, StaticInitJBlock, StaticRefJExpr, SuccessorJVarDeclaration, SynchJBlock, TryJVarDeclaration, WhileJBlock

public interface JCommentable
A program element which can have comments attached to it.
  • 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