public enum Type extends Enum<Type>
| Enum Constant and Description |
|---|
DIR
目录
|
PACKAGE
包
|
STATIC
静态内容,不经过模板处理,当 structure 只有 name 没有 file 时认为是 STATIC,找不到文件就是空文件
|
TEMPLATE
模板,经过模板赋值处理,当 structure 只有 file 没有 name 时,生成的文件名使用 file 名,当同时存在时,name为文件名,file为内容
|
| Modifier and Type | Method and Description |
|---|---|
static Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Type DIR
public static final Type PACKAGE
public static final Type TEMPLATE
模板优先级高于静态内容
public static final Type STATIC
public static Type[] values()
for (Type c : Type.values()) System.out.println(c);
public static Type valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2023. All rights reserved.