Uploaded image for project: 'Errai'
  1. Errai
  2. ERRAI-654

[errai-codegen] Specifying class comment though ClassBuilder

    Details

    • Type: Enhancement
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Done
    • Affects Version/s: 2.4.1.Final
    • Fix Version/s: 3.0.0.M2
    • Component/s: None
    • Labels:

      Description

      It would be nice if the class comment could be set via the ClassBuilder.

      This is currently not possible. In order to set the class comment I have to obtain the ClassDefinition and set it manually.

      ClassStructureBuilder<?> classBuilder = ClassBuilder.define("MyClass")
          .publicScope()
          .body();
      classBuilder.getClassDefinition().setClassComment("Some documentation");
      

      Proposal via ClassBuilder

      ClassBuilder.define("MyClass")
          .classComment("Some documentation")
          .publicScope()
          .body();
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                jbarop Johannes Barop
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: