public static enum AbstractTypeMaterializer.Feature extends Enum<AbstractTypeMaterializer.Feature>
枚举常量和说明 |
---|
FAIL_ON_NON_PUBLIC_TYPES
Feature that determines what happens when attempt is made to
generate implementation of non-public class or interface.
|
FAIL_ON_UNMATERIALIZED_METHOD
Feature that determines what happens if an "unrecognized"
(non-getter, non-setter) abstract method is encountered: if set to
true, will throw an exception during materialization; if false,
will materialize method that throws exception only if called.
|
限定符和类型 | 方法和说明 |
---|---|
protected static int |
collectDefaults() |
boolean |
enabledByDefault() |
int |
getMask() |
static AbstractTypeMaterializer.Feature |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static AbstractTypeMaterializer.Feature[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final AbstractTypeMaterializer.Feature FAIL_ON_UNMATERIALIZED_METHOD
public static final AbstractTypeMaterializer.Feature FAIL_ON_NON_PUBLIC_TYPES
public static AbstractTypeMaterializer.Feature[] values()
for (AbstractTypeMaterializer.Feature c : AbstractTypeMaterializer.Feature.values()) System.out.println(c);
public static AbstractTypeMaterializer.Feature valueOf(String name)
name
- 要返回的枚举常量的名称。如果该枚举类型没有带有指定名称的常量,
- 则抛出 IllegalArgumentException如果参数为空值,
- 则抛出 NullPointerExceptionprotected static int collectDefaults()
public boolean enabledByDefault()
public int getMask()