enum.sbn 442 B

12345678910111213141516171819
  1. {{~if __namespace_with_top_module != ''~}}
  2. package {{__namespace_with_top_module}};
  3. {{~end~}}
  4. {{~if __this.comment != '' ~}}
  5. /**
  6. * {{escape_comment __this.comment}}
  7. */
  8. {{~end~}}
  9. public final class {{__name}} {
  10. {{~ for item in __this.items ~}}
  11. {{~if item.comment_or_alias != '' ~}}
  12. /**
  13. * {{escape_comment item.comment_or_alias}}
  14. */
  15. {{~end~}}
  16. public static final int {{item.name}} = {{item.int_value}};
  17. {{~end~}}
  18. }