Package com.github.javaparser.ast
Enum AccessSpecifier
- java.lang.Object
-
- java.lang.Enum<AccessSpecifier>
-
- com.github.javaparser.ast.AccessSpecifier
-
- All Implemented Interfaces:
Serializable
,Comparable<AccessSpecifier>
public enum AccessSpecifier extends Enum<AccessSpecifier>
Access specifier. Represents one of the possible levels of access permitted by the language.- Since:
- July 2014
- Author:
- Federico Tomassetti
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
asString()
static AccessSpecifier
valueOf(String name)
Returns the enum constant of this type with the specified name.static AccessSpecifier[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PUBLIC
public static final AccessSpecifier PUBLIC
-
PRIVATE
public static final AccessSpecifier PRIVATE
-
PROTECTED
public static final AccessSpecifier PROTECTED
-
NONE
public static final AccessSpecifier NONE
-
-
Method Detail
-
values
public static AccessSpecifier[] 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 (AccessSpecifier c : AccessSpecifier.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AccessSpecifier valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
asString
public String asString()
-
-