Package net.bytebuddy.implementation
Enum MethodAccessorFactory.AccessType
- java.lang.Object
-
- java.lang.Enum<MethodAccessorFactory.AccessType>
-
- net.bytebuddy.implementation.MethodAccessorFactory.AccessType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<MethodAccessorFactory.AccessType>
- Enclosing interface:
- MethodAccessorFactory
public static enum MethodAccessorFactory.AccessType extends java.lang.Enum<MethodAccessorFactory.AccessType>
Indicates the type of access to an accessor method.
-
-
Field Summary
Fields Modifier and Type Field Description private Visibility
visibility
The implied visibility.
-
Constructor Summary
Constructors Modifier Constructor Description private
AccessType(Visibility visibility)
Creates a new access type.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Visibility
getVisibility()
Returns the implied visibility.static MethodAccessorFactory.AccessType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static MethodAccessorFactory.AccessType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PUBLIC
public static final MethodAccessorFactory.AccessType PUBLIC
An access withpublic visibility
.
-
DEFAULT
public static final MethodAccessorFactory.AccessType DEFAULT
An access with default visibility.
-
-
Field Detail
-
visibility
private final Visibility visibility
The implied visibility.
-
-
Constructor Detail
-
AccessType
private AccessType(Visibility visibility)
Creates a new access type.- Parameters:
visibility
- The implied visibility.
-
-
Method Detail
-
values
public static MethodAccessorFactory.AccessType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (MethodAccessorFactory.AccessType c : MethodAccessorFactory.AccessType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MethodAccessorFactory.AccessType valueOf(java.lang.String name)
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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getVisibility
public Visibility getVisibility()
Returns the implied visibility.- Returns:
- The implied visibility.
-
-