public static enum JsonAutoDetect.Visibility extends Enum<JsonAutoDetect.Visibility>
枚举常量和说明 |
---|
ANY
Value that means that all kinds of access modifiers are acceptable,
from private to public.
|
DEFAULT
Value that indicates that default visibility level (whatever it is,
depends on context) is to be used.
|
NON_PRIVATE
Value that means that any other access modifier other than 'private'
is considered auto-detectable.
|
NONE
Value that indicates that no access modifiers are auto-detectable:
this can be used to explicitly disable auto-detection for specified
types.
|
PROTECTED_AND_PUBLIC
Value that means access modifiers 'protected' and 'public' are
auto-detectable (and 'private' and "package access" == no modifiers
are not)
|
PUBLIC_ONLY
Value to indicate that only 'public' access modifier is considered
auto-detectable.
|
限定符和类型 | 方法和说明 |
---|---|
boolean |
isVisible(Member m) |
static JsonAutoDetect.Visibility |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static JsonAutoDetect.Visibility[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final JsonAutoDetect.Visibility ANY
public static final JsonAutoDetect.Visibility NON_PRIVATE
public static final JsonAutoDetect.Visibility PROTECTED_AND_PUBLIC
public static final JsonAutoDetect.Visibility PUBLIC_ONLY
public static final JsonAutoDetect.Visibility NONE
public static final JsonAutoDetect.Visibility DEFAULT
public static JsonAutoDetect.Visibility[] values()
for (JsonAutoDetect.Visibility c : JsonAutoDetect.Visibility.values()) System.out.println(c);
public static JsonAutoDetect.Visibility valueOf(String name)
name
- 要返回的枚举常量的名称。如果该枚举类型没有带有指定名称的常量,
- 则抛出 IllegalArgumentException如果参数为空值,
- 则抛出 NullPointerExceptionpublic boolean isVisible(Member m)