初始化工程
This commit is contained in:
19
Config/Tools/Luban/Templates/common/java/enum.sbn
Normal file
19
Config/Tools/Luban/Templates/common/java/enum.sbn
Normal file
@@ -0,0 +1,19 @@
|
||||
{{~if __namespace_with_top_module != ''~}}
|
||||
package {{__namespace_with_top_module}};
|
||||
{{~end~}}
|
||||
|
||||
{{~if __this.comment != '' ~}}
|
||||
/**
|
||||
* {{escape_comment __this.comment}}
|
||||
*/
|
||||
{{~end~}}
|
||||
public final class {{__name}} {
|
||||
{{~ for item in __this.items ~}}
|
||||
{{~if item.comment_or_alias != '' ~}}
|
||||
/**
|
||||
* {{escape_comment item.comment_or_alias}}
|
||||
*/
|
||||
{{~end~}}
|
||||
public static final int {{item.name}} = {{item.int_value}};
|
||||
{{~end~}}
|
||||
}
|
||||
Reference in New Issue
Block a user