Enum Class AccessControl.Visibility
- 所有已实现的接口:
Serializable,Comparable<AccessControl.Visibility>,Constable
- 封闭类:
- AccessControl
-
嵌套类概要
从类继承的嵌套类/接口 java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
枚举常量概要
枚举常量枚举常量说明Package-private visibility.Private visibility.Protected visibility.Public visibility. -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明private static AccessControl.Visibilityprivate static AccessControl.Visibilityprivate static AccessControl.VisibilityforModifiers(int modifiers) private static AccessControl.VisibilityforParameterTypes(Executable executable, IntFunction<ResolvableType> resolvableTypeFactory) private static AccessControl.VisibilityforResolvableType(ResolvableType resolvableType) private static AccessControl.VisibilityforResolvableType(ResolvableType resolvableType, Set<ResolvableType> seen) (专用程序包) static AccessControl.Visibilitylowest(AccessControl.Visibility... candidates) Returns the lowestAccessControl.Visibilityfrom the given candidates.(专用程序包) static intlowestIndex(AccessControl.Visibility... candidates) Returns the index of the lowestAccessControl.Visibilityfrom the given candidates.static AccessControl.VisibilityReturns the enum constant of this class with the specified name.static AccessControl.Visibility[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
枚举常量详细资料
-
PUBLIC
Public visibility. The member or type is visible to all classes. -
PROTECTED
Protected visibility. The member or type is only visible to classes in the same package or subclasses. -
PACKAGE_PRIVATE
Package-private visibility. The member or type is only visible to classes in the same package. -
PRIVATE
Private visibility. The member or type is not visible to other classes.
-
-
构造器详细资料
-
Visibility
private Visibility()
-
-
方法详细资料
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- 返回:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- 参数:
name- 要返回的枚举常量的名称。- 返回:
- 返回带有指定名称的枚举常量
- 抛出:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- 如果参数为空值
-
forMember
-
forResolvableType
-
forResolvableType
private static AccessControl.Visibility forResolvableType(ResolvableType resolvableType, Set<ResolvableType> seen) -
forParameterTypes
private static AccessControl.Visibility forParameterTypes(Executable executable, IntFunction<ResolvableType> resolvableTypeFactory) -
forClass
-
forModifiers
-
lowest
Returns the lowestAccessControl.Visibilityfrom the given candidates.- 参数:
candidates- the candidates to check- 返回:
- the lowest
AccessControl.Visibilityfrom the candidates
-
lowestIndex
Returns the index of the lowestAccessControl.Visibilityfrom the given candidates.- 参数:
candidates- the candidates to check- 返回:
- the index of the lowest
AccessControl.Visibilityfrom the candidates
-