Package com.google.auto.common
Enum Visibility
- All Implemented Interfaces:
Serializable
,Comparable<Visibility>
Represents the visibility of a given
Element
: public
, protected
,
private
or default/package-private.
The constants for this enum are ordered according by increasing visibility.
-
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Visibility
effectiveVisibilityOfElement
(Element element) Returns effective visibility of the given element meaning that it takes into account the visibility of its enclosing elements.static Visibility
Returns the visibility of the givenElement
.static Visibility
Returns the enum constant of this type with the specified name.static Visibility[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
PRIVATE
-
DEFAULT
-
PROTECTED
-
PUBLIC
-
-
Field Details
-
MODULE
-
-
Constructor Details
-
Visibility
private Visibility()
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
ofElement
-
effectiveVisibilityOfElement
Returns effective visibility of the given element meaning that it takes into account the visibility of its enclosing elements.
-